Share via


WorkflowInstanceService.CountInstancesWithStatus method

Retrieves a count of the instances of the specified WorkflowSubscription that have a specified status.

Namespace:  Microsoft.SharePoint.WorkflowServices
Assembly:  Microsoft.SharePoint.WorkflowServicesBase (in Microsoft.SharePoint.WorkflowServicesBase.dll)

Syntax

'Declaration
<ClientCallableMethodAttribute> _
Public MustOverride Function CountInstancesWithStatus ( _
    parentSubscription As WorkflowSubscription, _
    status As WorkflowStatus _
) As Integer
'Usage
Dim instance As WorkflowInstanceService
Dim parentSubscription As WorkflowSubscription
Dim status As WorkflowStatus
Dim returnValue As Integer

returnValue = instance.CountInstancesWithStatus(parentSubscription, _
    status)
[ClientCallableMethodAttribute]
public abstract int CountInstancesWithStatus(
    WorkflowSubscription parentSubscription,
    WorkflowStatus status
)

Parameters

Return value

Type: System.Int32
Returns an integer representing the count of the subscription instances that have the specified status.

See also

Reference

WorkflowInstanceService class

WorkflowInstanceService members

Microsoft.SharePoint.WorkflowServices namespace