Export (0) Print
Expand All

SPWorkflowManager.CountWorkflows Method (SPWorkflowAssociation)

Returns the number of workflow instances for the specified workflow association.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public int CountWorkflows(
	SPWorkflowAssociation association


Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation

The workflow association for which you want the number of workflow instances.

Return Value

Type: System.Int32
A 32-bit integer that represents the number of workflow associations.

This method gets the number of workflows associated with the workflow association specified by the association parameter.

© 2014 Microsoft