Share via


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

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

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation