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
parentSubscription
Type: Microsoft.SharePoint.WorkflowServices.WorkflowSubscriptionThe parent subscription of the instances to count.
status
Type: Microsoft.SharePoint.WorkflowServices.WorkflowStatusThe status for which a count of subscription instances are returned. If not specified, instances in all statuses are counted.
Return value
Type: System.Int32
Returns an integer representing the count of the subscription instances that have the specified status.