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

Syntax

'Declaration
Public Function CountWorkflows ( _
    web As SPWeb _
) As Dictionary(Of Guid, Integer)
'Usage
Dim instance As SPWorkflowManager
Dim web As SPWeb
Dim returnValue As Dictionary(Of Guid, Integer)

returnValue = instance.CountWorkflows(web)
public Dictionary<Guid, int> CountWorkflows(
    SPWeb web
)

Parameters

Return Value

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

Remarks

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

See Also

Reference

SPWorkflowManager Class

SPWorkflowManager Members

CountWorkflows Overload

Microsoft.SharePoint.Workflow Namespace