This documentation is archived and is not being maintained.

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.