SPWorkflowAssociationCollection.GetAssociationByName method

Returns the workflow association based on its name.

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


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

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


  • 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.


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

See also


SPWorkflowAssociationCollection class

SPWorkflowAssociationCollection members

Microsoft.SharePoint.Workflow namespace