SPWorkflowAssociationCollection.GetAssociationByBaseID method

Returns the workflow association based on the workflow template ID.

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

Syntax

'Declaration
Public Function GetAssociationByBaseID ( _
    baseTemplateId As Guid _
) As SPWorkflowAssociation
'Usage
Dim instance As SPWorkflowAssociationCollection
Dim baseTemplateId As Guid
Dim returnValue As SPWorkflowAssociation

returnValue = instance.GetAssociationByBaseID(baseTemplateId)
public SPWorkflowAssociation GetAssociationByBaseID(
    Guid baseTemplateId
)

Parameters

  • baseTemplateId
    Type: System.Guid

    The workflow template ID on which the desired workflow association is based.

Return value

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

Remarks

This method returns the workflow association based on the workflow template ID specified by the baseTemplateId parameter.

See also

Reference

SPWorkflowAssociationCollection class

SPWorkflowAssociationCollection members

Microsoft.SharePoint.Workflow namespace