WorkflowApplication.GetInstance 方法

定義

擷取工作流程執行個體。Retrieves the workflow instance.

多載

GetInstance(Guid, InstanceStore)

使用指定的執行個體識別項和執行個體存放區擷取工作流程執行個體。Retrieves the workflow instance using specified instance identifier and instance store.

GetInstance(Guid, InstanceStore, TimeSpan)

使用指定的執行個體識別項、執行個體存放區和逾時間隔擷取工作流程執行個體。Retrieves the workflow instance using specified instance identifier, instance store and timeout interval.

GetInstance(Guid, InstanceStore)

使用指定的執行個體識別項和執行個體存放區擷取工作流程執行個體。Retrieves the workflow instance using specified instance identifier and instance store.

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

參數

instanceId
Guid

執行個體識別項。The instance identifier.

instanceStore
InstanceStore

目前工作流程應用程式執行個體的永續性狀態的存取權。The access to the persisted state of the current instance of the workflow application.

傳回

擷取的執行個體。The retrieved instance.

GetInstance(Guid, InstanceStore, TimeSpan)

使用指定的執行個體識別項、執行個體存放區和逾時間隔擷取工作流程執行個體。Retrieves the workflow instance using specified instance identifier, instance store and timeout interval.

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

參數

instanceId
Guid

執行個體識別項。The instance identifier.

instanceStore
InstanceStore

目前工作流程應用程式執行個體的永續性狀態的存取權。The access to the persisted state of the current instance of the workflow application.

timeout
TimeSpan

開始載入作業必須在作業取消前完成的間隔。The interval in which the begin load operation must complete before the operation is canceled.

傳回

非同步作業的參考。A reference to the asynchronous operation.

適用於