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 | |
---|---|---|
GetCount() | Retrieves the count of all workflow instances in this scope. |
|
GetCount(String) | Retrieves the count of all workflow instances of a specific workflow. |
|
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. |
|
GetCount(WorkflowInstanceStatus) | Retrieves the count of all workflow instances that have a specific status. |
|
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.StringThe 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.StringThe name of the workflow to which the instances belongs.
workflowStatus
Type: Microsoft.Activities.WorkflowInstanceStatusThe status of workflow instances (not to be confused with the status of the workflow) to be included in the count.
activationMetadataFilter
Type: System.Collections.Generic.IDictionary<String, String>The activation metadata filter for the workflow instances to be include in the count.
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
workflowStatus
Type: Microsoft.Activities.WorkflowInstanceStatusThe status of workflow instances (not to be confused with the status of the workflow) to be included in the count.
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
workflowStatus
Type: Microsoft.Activities.WorkflowInstanceStatusThe status of workflow instances (not to be confused with the status of the workflow) to be included in the count.
activationMetadataFilter
Type: System.Collections.Generic.IDictionary<String, String>The activation metadata filter for the workflow instances to be include in the count.
Return Value
Type: System.Int32
Number of workflow instances with the specified status and activation metadata filer in the current scope.
Return to top