共用方式為


WorkflowApplication.GetInstance 方法

定義

擷取工作流程執行個體。

多載

GetInstance(Guid, InstanceStore)

使用指定的執行個體識別項和執行個體存放區擷取工作流程執行個體。

GetInstance(Guid, InstanceStore, TimeSpan)

使用指定的執行個體識別項、執行個體存放區和逾時間隔擷取工作流程執行個體。

GetInstance(Guid, InstanceStore)

使用指定的執行個體識別項和執行個體存放區擷取工作流程執行個體。

public:
 static System::Activities::WorkflowApplicationInstance ^ GetInstance(Guid instanceId, System::Runtime::DurableInstancing::InstanceStore ^ instanceStore);
public static System.Activities.WorkflowApplicationInstance GetInstance (Guid instanceId, System.Runtime.DurableInstancing.InstanceStore instanceStore);
static member GetInstance : Guid * System.Runtime.DurableInstancing.InstanceStore -> System.Activities.WorkflowApplicationInstance
Public Shared Function GetInstance (instanceId As Guid, instanceStore As InstanceStore) As WorkflowApplicationInstance

參數

instanceId
Guid

執行個體識別碼。

instanceStore
InstanceStore

目前工作流程應用程式執行個體的永續性狀態的存取權。

傳回

擷取的執行個體。

適用於

GetInstance(Guid, InstanceStore, TimeSpan)

使用指定的執行個體識別項、執行個體存放區和逾時間隔擷取工作流程執行個體。

public:
 static System::Activities::WorkflowApplicationInstance ^ GetInstance(Guid instanceId, System::Runtime::DurableInstancing::InstanceStore ^ instanceStore, TimeSpan timeout);
public static System.Activities.WorkflowApplicationInstance GetInstance (Guid instanceId, System.Runtime.DurableInstancing.InstanceStore instanceStore, TimeSpan timeout);
static member GetInstance : Guid * System.Runtime.DurableInstancing.InstanceStore * TimeSpan -> System.Activities.WorkflowApplicationInstance
Public Shared Function GetInstance (instanceId As Guid, instanceStore As InstanceStore, timeout As TimeSpan) As WorkflowApplicationInstance

參數

instanceId
Guid

執行個體識別碼。

instanceStore
InstanceStore

目前工作流程應用程式執行個體的永續性狀態的存取權。

timeout
TimeSpan

開始載入作業必須在作業取消前完成的間隔。

傳回

非同步作業的參考。

適用於