Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
web
Type: Microsoft.SharePoint.SPWebThe 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.
Remarks
This method gets the workflows running on the website specified by the web parameter.