Rediger

Del via


WorkflowApplication.GetInstance Method

Definition

Retrieves the workflow instance.

Overloads

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
Public Shared Function GetInstance (instanceId As Guid, instanceStore As InstanceStore) As WorkflowApplicationInstance

Parameters

instanceId
Guid

The instance identifier.

instanceStore
InstanceStore

The access to the persisted state of the current instance of the workflow application.

Returns

The retrieved instance.

Applies to

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
Public Shared Function GetInstance (instanceId As Guid, instanceStore As InstanceStore, timeout As TimeSpan) As WorkflowApplicationInstance

Parameters

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.

Returns

A reference to the asynchronous operation.

Applies to