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)

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