Redigera

Dela via


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, System::Object ^ value, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginResumeBookmark (System.Activities.Bookmark bookmark, object value, AsyncCallback callback, object state);
member this.BeginResumeBookmark : System.Activities.Bookmark * obj * AsyncCallback * obj -> IAsyncResult
Public Function BeginResumeBookmark (bookmark As Bookmark, value As Object, callback As AsyncCallback, state As Object) As IAsyncResult

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

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(System::String ^ bookmarkName, System::Object ^ value, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginResumeBookmark (string bookmarkName, object value, AsyncCallback callback, object state);
member this.BeginResumeBookmark : string * obj * AsyncCallback * obj -> IAsyncResult
Public Function BeginResumeBookmark (bookmarkName As String, value As Object, callback As AsyncCallback, state As Object) As IAsyncResult

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

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, System::Object ^ value, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginResumeBookmark (System.Activities.Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state);
member this.BeginResumeBookmark : System.Activities.Bookmark * obj * TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginResumeBookmark (bookmark As Bookmark, value As Object, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

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

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(System::String ^ bookmarkName, System::Object ^ value, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginResumeBookmark (string bookmarkName, object value, TimeSpan timeout, AsyncCallback callback, object state);
member this.BeginResumeBookmark : string * obj * TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginResumeBookmark (bookmarkName As String, value As Object, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

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