SPWorkflowAssociation.RunningInstances property

Returns the number of in-progress workflow instances based on the workflow association.

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

Syntax

'Declaration
Public ReadOnly Property RunningInstances As Integer
    Get
'Usage
Dim instance As SPWorkflowAssociation
Dim value As Integer

value = instance.RunningInstances
public int RunningInstances { get; }

Property value

Type: System.Int32
An Integer that represents the number of workflows.

See also

Reference

SPWorkflowAssociation class

SPWorkflowAssociation members

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