WorkflowInstanceService.CountInstances method

Retrieves a count of all the instances of the specified WorkflowSubscription.

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

Syntax

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

returnValue = instance.CountInstances(parentSubscription)
[ClientCallableMethodAttribute]
public abstract int CountInstances(
    WorkflowSubscription parentSubscription
)

Parameters

Return value

Type: System.Int32
Returns an integer representing the count of the specified subscription.

See also

Reference

WorkflowInstanceService class

WorkflowInstanceService members

Microsoft.SharePoint.WorkflowServices namespace