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