Share via


InstanceManager.GetCount Method

 

Retrieves the count of workflow instances.

Namespace:   Microsoft.Workflow.Client
Assembly:  Microsoft.Workflow.Client (in Microsoft.Workflow.Client.dll)

Overload List

Name Description
System_CAPS_pubmethod GetCount()

Retrieves the count of all workflow instances in this scope.

System_CAPS_pubmethod GetCount(String)

Retrieves the count of all workflow instances of a specific workflow.

System_CAPS_pubmethod GetCount(String, WorkflowInstanceStatus, IDictionary<String, String>)

Retrieves the count of all workflow instances of a specific workflow that have a specific status and match specified activation metadata filter.

System_CAPS_pubmethod GetCount(WorkflowInstanceStatus)

Retrieves the count of all workflow instances that have a specific status.

System_CAPS_pubmethod GetCount(WorkflowInstanceStatus, IDictionary<String, String>)

Retrieves the count of all workflow instances that have a specific status and match specified activation metadata filter.

See Also

InstanceManager Class
Microsoft.Workflow.Client Namespace

Return to top

InstanceManager.GetCount Method ()

Retrieves the count of all workflow instances in this scope.

Syntax

public int GetCount()
public:
int GetCount()
member GetCount : unit -> int
Public Function GetCount As Integer

Return Value

Type: System.Int32

Number of all workflow instances in the current scope.

Return to top

InstanceManager.GetCount Method (String)

Retrieves the count of all workflow instances of a specific workflow.

Syntax

public int GetCount(
    string workflowName
)
public:
int GetCount(
    String^ workflowName
)
member GetCount : 
        workflowName:string -> int
Public Function GetCount (
    workflowName As String
) As Integer

Parameters

  • workflowName
    Type: System.String

    The name of the workflow to which the instances belongs.

Return Value

Type: System.Int32

Number of workflow instances for this workflow.

Return to top

InstanceManager.GetCount Method (String, WorkflowInstanceStatus, IDictionary<String, String>)

Retrieves the count of all workflow instances of a specific workflow that have a specific status and match specified activation metadata filter.

Syntax

public int GetCount(
    string workflowName,
    WorkflowInstanceStatus workflowStatus,
    IDictionary<string, string> activationMetadataFilter
)
public:
int GetCount(
    String^ workflowName,
    WorkflowInstanceStatus workflowStatus,
    IDictionary<String^, String^>^ activationMetadataFilter
)
member GetCount : 
        workflowName:string *
        workflowStatus:WorkflowInstanceStatus *
        activationMetadataFilter:IDictionary<string, string> -> int
Public Function GetCount (
    workflowName As String,
    workflowStatus As WorkflowInstanceStatus,
    activationMetadataFilter As IDictionary(Of String, String)
) As Integer

Parameters

  • workflowName
    Type: System.String

    The name of the workflow to which the instances belongs.

Return Value

Type: System.Int32

Number of workflow instances matching the specified criteria.

Return to top

InstanceManager.GetCount Method (WorkflowInstanceStatus)

Retrieves the count of all workflow instances that have a specific status.

Syntax

public int GetCount(
    WorkflowInstanceStatus workflowStatus
)
public:
int GetCount(
    WorkflowInstanceStatus workflowStatus
)
member GetCount : 
        workflowStatus:WorkflowInstanceStatus -> int
Public Function GetCount (
    workflowStatus As WorkflowInstanceStatus
) As Integer

Parameters

Return Value

Type: System.Int32

Number of workflow instances with the specified status in the current scope.

Return to top

InstanceManager.GetCount Method (WorkflowInstanceStatus, IDictionary<String, String>)

Retrieves the count of all workflow instances that have a specific status and match specified activation metadata filter.

Syntax

public int GetCount(
    WorkflowInstanceStatus workflowStatus,
    IDictionary<string, string> activationMetadataFilter
)
public:
int GetCount(
    WorkflowInstanceStatus workflowStatus,
    IDictionary<String^, String^>^ activationMetadataFilter
)
member GetCount : 
        workflowStatus:WorkflowInstanceStatus *
        activationMetadataFilter:IDictionary<string, string> -> int
Public Function GetCount (
    workflowStatus As WorkflowInstanceStatus,
    activationMetadataFilter As IDictionary(Of String, String)
) As Integer

Parameters

Return Value

Type: System.Int32

Number of workflow instances with the specified status and activation metadata filer in the current scope.

Return to top