SPWorkflowAssociationCollection.GetAssociationByBaseID Method
Returns the workflow association based on the workflow template ID.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.GuidThe 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