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

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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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.

This method gets the number of workflow associations for the template specified by the template parameter for the collection of websites specified by the site parameter.

© 2015 Microsoft