WorkflowInstanceManager.GetInstances 方法 (Int32, Int32, String, WorkflowInstanceStatus, String())
傳回工作流程執行個體的集合,這些執行個體具有指定的略過值、計數、工作流程狀態、工作流程名稱和啟用中繼資料篩選條件。
命名空間: Microsoft.Workflow.Client
組件: Microsoft.Workflow.Client (在 Microsoft.Workflow.Client.dll 中)
語法
'宣告
Public Function GetInstances ( _
skip As Integer, _
count As Integer, _
workflowName As String, _
workflowStatus As WorkflowInstanceStatus, _
ParamArray activationMetadataFilter As String() _
) As Collection(Of WorkflowInstanceInfo)
'用途
Dim instance As WorkflowInstanceManager
Dim skip As Integer
Dim count As Integer
Dim workflowName As String
Dim workflowStatus As WorkflowInstanceStatus
Dim activationMetadataFilter As String()
Dim returnValue As Collection(Of WorkflowInstanceInfo)
returnValue = instance.GetInstances(skip, _
count, workflowName, workflowStatus, _
activationMetadataFilter)
public Collection<WorkflowInstanceInfo> GetInstances(
int skip,
int count,
string workflowName,
WorkflowInstanceStatus workflowStatus,
params string[] activationMetadataFilter
)
public:
Collection<WorkflowInstanceInfo^>^ GetInstances(
int skip,
int count,
String^ workflowName,
WorkflowInstanceStatus workflowStatus,
... array<String^>^ activationMetadataFilter
)
member GetInstances :
skip:int *
count:int *
workflowName:string *
workflowStatus:WorkflowInstanceStatus *
activationMetadataFilter:string[] -> Collection<WorkflowInstanceInfo>
public function GetInstances(
skip : int,
count : int,
workflowName : String,
workflowStatus : WorkflowInstanceStatus,
... activationMetadataFilter : String[]
) : Collection<WorkflowInstanceInfo>
參數
- skip
型別:System.Int32
要略過的工作流程執行個體數目。
- count
型別:System.Int32
要擷取的工作流程執行個體數目。
- workflowName
型別:System.String
執行個體所屬之工作流程的名稱。
- workflowStatus
型別:Microsoft.Activities.WorkflowInstanceStatus
要擷取之工作流程執行個體的狀態。
- activationMetadataFilter
型別:array<System.String[]
中繼資料的集合,用來篩選要擷取的工作流程執行個體。
傳回值
型別:System.Collections.ObjectModel.Collection<WorkflowInstanceInfo>
工作流程執行個體的集合。