WorkflowApplication.BeginLoad Method

Definition

Loads a workflow asynchronously from an instance store using the IAsyncResult asynchronous design pattern.

Overloads

BeginLoad(Guid, TimeSpan, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the specified instance identifier, timeout period, callback method, and user-provided state.

BeginLoad(WorkflowApplicationInstance, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the IAsyncResult asynchronous design pattern with specified instance, callback and state.

BeginLoad(Guid, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the specified instance identifier, callback method, and user-provided state.

BeginLoad(WorkflowApplicationInstance, DynamicUpdateMap, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the IAsyncResult asynchronous design pattern with specified instance, update map, callback and state.

BeginLoad(WorkflowApplicationInstance, TimeSpan, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the IAsyncResult asynchronous design pattern with specified instance, timeout interval, callback and state.

BeginLoad(WorkflowApplicationInstance, DynamicUpdateMap, TimeSpan, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the IAsyncResult asynchronous design pattern with specified instance, update map, timeout interval, callback and state.

Remarks

For more information, see Asynchronous Programming Overview.

BeginLoad(Guid, TimeSpan, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the specified instance identifier, timeout period, callback method, and user-provided state.

C#
public IAsyncResult BeginLoad(Guid instanceId, TimeSpan timeout, AsyncCallback callback, object state);

Parameters

instanceId
Guid

A globally unique 128-bit identifier for the workflow instance.

timeout
TimeSpan

The interval in which the begin load operation must complete before the operation is canceled and a TimeoutException is thrown.

callback
AsyncCallback

The method to be called when the begin load operation has completed.

state
Object

An optional application-specific object that contains information about the asynchronous operation.

Returns

The status of an asynchronous operation.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BeginLoad(WorkflowApplicationInstance, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the IAsyncResult asynchronous design pattern with specified instance, callback and state.

C#
public IAsyncResult BeginLoad(System.Activities.WorkflowApplicationInstance instance, AsyncCallback callback, object state);

Parameters

instance
WorkflowApplicationInstance

The instance.

callback
AsyncCallback

The method to be called when the begin load operation has completed.

state
Object

An optional application-specific object that contains information about the asynchronous operation.

Returns

A reference to the asynchronous operation.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BeginLoad(Guid, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the specified instance identifier, callback method, and user-provided state.

C#
public IAsyncResult BeginLoad(Guid instanceId, AsyncCallback callback, object state);

Parameters

instanceId
Guid

A globally unique 128-bit identifier for the workflow instance.

callback
AsyncCallback

The method to be called when the begin load operation has completed.

state
Object

An optional application-specific object that contains information about the asynchronous operation.

Returns

The status of an asynchronous operation.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BeginLoad(WorkflowApplicationInstance, DynamicUpdateMap, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the IAsyncResult asynchronous design pattern with specified instance, update map, callback and state.

C#
public IAsyncResult BeginLoad(System.Activities.WorkflowApplicationInstance instance, System.Activities.DynamicUpdate.DynamicUpdateMap updateMap, AsyncCallback callback, object state);

Parameters

instance
WorkflowApplicationInstance

The instance.

updateMap
DynamicUpdateMap

The update map.

callback
AsyncCallback

The method to be called when the begin load operation has completed.

state
Object

An optional application-specific object that contains information about the asynchronous operation.

Returns

A reference to the asynchronous operation.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BeginLoad(WorkflowApplicationInstance, TimeSpan, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the IAsyncResult asynchronous design pattern with specified instance, timeout interval, callback and state.

C#
public IAsyncResult BeginLoad(System.Activities.WorkflowApplicationInstance instance, TimeSpan timeout, AsyncCallback callback, object state);

Parameters

instance
WorkflowApplicationInstance

The instance.

timeout
TimeSpan

The interval in which the begin load operation must complete before the operation is canceled and a TimeoutException is thrown.

callback
AsyncCallback

The method to be called when the begin load operation has completed.

state
Object

An optional application-specific object that contains information about the asynchronous operation.

Returns

A reference to the asynchronous operation.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BeginLoad(WorkflowApplicationInstance, DynamicUpdateMap, TimeSpan, AsyncCallback, Object)

Loads a workflow asynchronously from an instance store using the IAsyncResult asynchronous design pattern with specified instance, update map, timeout interval, callback and state.

C#
public IAsyncResult BeginLoad(System.Activities.WorkflowApplicationInstance instance, System.Activities.DynamicUpdate.DynamicUpdateMap updateMap, TimeSpan timeout, AsyncCallback callback, object state);

Parameters

instance
WorkflowApplicationInstance

The instance.

updateMap
DynamicUpdateMap

The update map.

timeout
TimeSpan

The interval in which the begin load operation must complete before the operation is canceled and a TimeoutException is thrown.

callback
AsyncCallback

The method to be called when the begin load operation has completed.

state
Object

An optional application-specific object that contains information about the asynchronous operation.

Returns

A reference to the asynchronous operation.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1