WorkflowApplication.BeginResumeBookmark Method

Definition

Initiates an asynchronous operation to resume a bookmark.

Overloads

BeginResumeBookmark(Bookmark, Object, AsyncCallback, Object)

Initiates an operation to resume a bookmark using the specified value, callback method, and state.

BeginResumeBookmark(String, Object, AsyncCallback, Object)

Initiates an asynchronous operation to resume the bookmark with the specified name, using the specified value, callback method, and state. The bookmark to be resumed is previously created by an activity within the workflow instance.

BeginResumeBookmark(Bookmark, Object, TimeSpan, AsyncCallback, Object)

Initiates an operation to resume a bookmark using the specified value, time-out interval, callback method, and state.

BeginResumeBookmark(String, Object, TimeSpan, AsyncCallback, Object)

Initiates an asynchronous operation to resume the bookmark with the specified name, using the specified value, time-out interval, callback method, and state. The bookmark to be resumed is previously created by an activity within the workflow instance.

BeginResumeBookmark(Bookmark, Object, AsyncCallback, Object)

Initiates an operation to resume a bookmark using the specified value, callback method, and state.

public IAsyncResult BeginResumeBookmark (System.Activities.Bookmark bookmark, object value, AsyncCallback callback, object state);

Parameters

bookmark
Bookmark

The bookmark to resume.

value
Object

An object passed as a parameter to the method that is invoked when the bookmark resumes.

callback
AsyncCallback

The method to be called when the resume operation has completed.

state
Object

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

Returns

A reference to the asynchronous bookmark resume operation.

Remarks

To determine if the resume operation was successful, call EndResumeBookmark. EndResumeBookmark can be called from inside or outside of the callback method. If EndResumeBookmark is called before the resume operation completes, it blocks until the resume operation completes. By default, the resume operation must complete in 30 seconds or else a TimeoutException is thrown from EndResumeBookmark.

This method resumes a bookmark asynchronously using the IAsyncResult asynchronous design pattern. For more information, see Asynchronous Programming Overview.

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

BeginResumeBookmark(String, Object, AsyncCallback, Object)

Initiates an asynchronous operation to resume the bookmark with the specified name, using the specified value, callback method, and state. The bookmark to be resumed is previously created by an activity within the workflow instance.

public IAsyncResult BeginResumeBookmark (string bookmarkName, object value, AsyncCallback callback, object state);

Parameters

bookmarkName
String

The name of the bookmark to be resumed.

value
Object

An object passed as a parameter to the method that is invoked when the bookmark resumes.

callback
AsyncCallback

The method that is called when the asynchronous operation completes.

state
Object

The state of execution of a workflow that was preserved by the calling thread before an asynchronous operation began.

Returns

The result of the bookmark resumption operation.

Remarks

The bookmark result indicates whether the resumption operation succeeded or failed.

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

BeginResumeBookmark(Bookmark, Object, TimeSpan, AsyncCallback, Object)

Initiates an operation to resume a bookmark using the specified value, time-out interval, callback method, and state.

public IAsyncResult BeginResumeBookmark (System.Activities.Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state);

Parameters

bookmark
Bookmark

The bookmark to resume.

value
Object

An object passed as a parameter to the method that is invoked when the bookmark resumes.

timeout
TimeSpan

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

callback
AsyncCallback

The method to be called when the resume operation has completed.

state
Object

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

Returns

A reference to the asynchronous bookmark resume operation.

Remarks

To determine if the resume operation was successful, call EndResumeBookmark. EndResumeBookmark can be called from inside or outside of the callback method. If EndResumeBookmark is called before the resume operation completes, it blocks until the resume operation completes. If the resume operation does not complete within the specified time-out interval a TimeoutException is thrown from EndResumeBookmark.

This method resumes a bookmark asynchronously using the IAsyncResult asynchronous design pattern. For more information, see Asynchronous Programming Overview.

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

BeginResumeBookmark(String, Object, TimeSpan, AsyncCallback, Object)

Initiates an asynchronous operation to resume the bookmark with the specified name, using the specified value, time-out interval, callback method, and state. The bookmark to be resumed is previously created by an activity within the workflow instance.

public IAsyncResult BeginResumeBookmark (string bookmarkName, object value, TimeSpan timeout, AsyncCallback callback, object state);

Parameters

bookmarkName
String

The name of the bookmark to be resumed.

value
Object

An object passed as a parameter to the method that is invoked when the bookmark resumes.

timeout
TimeSpan

The time interval during which the bookmark must be resumed.

callback
AsyncCallback

The method that is called when the asynchronous operation completes.

state
Object

The state of execution of a workflow that was saved by the calling thread before an asynchronous operation began.

Returns

The result of the bookmark resumption operation.

Remarks

The bookmark result indicates whether the resumption operation succeeded or failed.

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