Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPWorkflowManager.CountWorkflowAssociations Method

Windows SharePoint Services 3

Returns the number of workflow associations, based on the specified workflow template, for the specified site collection.

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

public int CountWorkflowAssociations(
	SPWorkflowTemplate template,
	SPSite site


Type: Microsoft.SharePoint.Workflow.SPWorkflowTemplate
The workflow template for which you want the number of associations for this site collection.
Type: Microsoft.SharePoint.SPSite
The site collection for which you want the number of workflow associations based on the workflow template.

Return Value

Type: System.Int32
An Integer that represents the number of workflow associations.

Community Additions

© 2015 Microsoft