SPWorkflowAssociationCollection.GetAssociationByName method
Returns the workflow association based on its name.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'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
)
name
Type: System.StringThe name of the desired workflow association.
cultureInfo
Type: System.Globalization.CultureInfoThe information about a specific culture.
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.
SPWorkflowAssociationCollection class