SPWorkflowAssociationCollection.GetAssociationByName method

Returns the workflow association based on its name.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetAssociationByName ( _
    name As String, _
    cultureInfo As CultureInfo _
) As SPWorkflowAssociation
'Usage
Dim instance As SPWorkflowAssociationCollection
Dim name As String
Dim cultureInfo As CultureInfo
Dim returnValue As SPWorkflowAssociation

returnValue = instance.GetAssociationByName(name, _
    cultureInfo)
public SPWorkflowAssociation GetAssociationByName(
    string name,
    CultureInfo cultureInfo
)

Parameters

  • name
    Type: System.String

    The name of the desired workflow association.

Return value

Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation
A SPWorkflowAssociation object that represents the specified workflow association.

Remarks

This method returns the workflow association with the name specified by the name parameter and culture specified by the cultureInfo parameter.

See also

Reference

SPWorkflowAssociationCollection class

SPWorkflowAssociationCollection members

Microsoft.SharePoint.Workflow namespace