3.1.5.9.2.1.6 CountInstancesWithStatus

Return Type: CSOM Int32

Returns a count of the workflow instances of the specified WorkflowSubscription (section 3.1.5.5) with the specified status.

Parameters:

parentSubscription: The parent workflow subscription of the instances to count.

Type: Microsoft.SharePoint.Client.WorkflowServices.WorkflowSubscription

status: Only instances with this status (section 3.1.5.12) value are counted. If the value is WorkflowStatus.NotSpecified (section 3.1.5.12.1.8), instances in all statuses are counted.

Type: Microsoft.SharePoint.Client.WorkflowServices.WorkflowStatus