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