SPWorkflowManager.GetWorkflowAvailableRunCount Method

Obtains the number of workflow instances that can be started simultaneously, without being postponed, at the moment of the call.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Function GetWorkflowAvailableRunCount ( _
    web As SPWeb _
) As Integer
'Usage
Dim instance As SPWorkflowManager
Dim web As SPWeb
Dim returnValue As Integer

returnValue = instance.GetWorkflowAvailableRunCount(web)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public int GetWorkflowAvailableRunCount(
    SPWeb web
)

Parameters

Return Value

Type: System.Int32
A 32-bit integer that represents the maximum number of instances that can be started simultaneously.

Exceptions

Exception Condition
ArgumentNullException

The web parameter is a null reference (Nothing in Visual Basic).

See Also

Reference

SPWorkflowManager Class

SPWorkflowManager Members

Microsoft.SharePoint.Workflow Namespace