Share via


SPWorkflowManager.CountWorkflows method (SPContentType)

Returns the IDs of the workflow associations and the count of instances for each association.

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

Syntax

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

returnValue = instance.CountWorkflows(ct)
public Dictionary<Guid, int> CountWorkflows(
    SPContentType ct
)

Parameters

Return value

Type: System.Collections.Generic.Dictionary<Guid, Int32>
A Dictionary object that represents the IDs of the workflow associations and the count of instances for each association.

Remarks

This method gets the workflows associated with the content type specified by the ct 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