Share via


SPWorkflowManager.CountWorkflows method (SPList)

Returns the identifiers of the workflow associations on the list and the count of instances for each association.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

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

returnValue = instance.CountWorkflows(list)
public Dictionary<Guid, int> CountWorkflows(
    SPList list
)

Parameters

Return value

Type: System.Collections.Generic.Dictionary<Guid, Int32>
A Dictionary object that represents the identifiers of the associations on the list and the values that are the number of running instances for each related association.

Remarks

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

See also

Reference

SPWorkflowManager class

SPWorkflowManager members

CountWorkflows overload

Microsoft.SharePoint.Workflow namespace

Other resources

Workflows in Windows SharePoint Services

Workflow Development for Windows SharePoint Services

Workflow Object Model in Windows SharePoint Services Overview