SPWorkflowManager.CountWorkflows Method (SPWeb)

Returns the identifiers of the associations on this SPWeb and the number of running instances per association.

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

public Dictionary<Guid, int> CountWorkflows(
	SPWeb web


Type: Microsoft.SharePoint.SPWeb

The SPWeb object from which to retrieve the number of workflow instances.

Return Value

Type: System.Collections.Generic.Dictionary<Guid, Int32>
A Dictionary object that represents the number and identifiers of the workflow instances.

This method gets the workflows running on the website specified by the web parameter.