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

开始加载操作必须在取消操作前的间隔。

返回

对异步操作的引用。

适用于