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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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 SharePoint Foundation

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation