SPWorkflowAssociationCollection.GetAssociationByName method

Returns the workflow association based on its name.

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

public SPWorkflowAssociation GetAssociationByName(
	string name,
	CultureInfo cultureInfo
)

Parameters

name
Type: System.String

The name of the desired workflow association.

cultureInfo
Type: System.Globalization.CultureInfo

The information about a specific culture.

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.

Show: