WorkflowApplication.BeginResumeBookmark 方法
定义
启动异步操作以恢复书签。Initiates an asynchronous operation to resume a bookmark.
重载
| 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
参数
- 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.
返回
对异步书签恢复操作的引用。A reference to the asynchronous bookmark resume operation.
注解
若要确定恢复操作是否成功,请调用 EndResumeBookmark。To determine if the resume operation was successful, call EndResumeBookmark. 可以从 EndResumeBookmark 方法的内部或外部调用 callback。EndResumeBookmark can be called from inside or outside of the callback method. 如果在恢复操作完成前调用 EndResumeBookmark,则此调用将会被阻止,直至恢复操作完成。If EndResumeBookmark is called before the resume operation completes, it blocks until the resume operation completes. 默认情况下,恢复操作必须在 30 秒内完成,否则将在 TimeoutException 中引发 EndResumeBookmark。By default, the resume operation must complete in 30 seconds or else a TimeoutException is thrown from EndResumeBookmark.
此方法使用 IAsyncResult 异步设计模式以异步方式恢复书签。This method resumes a bookmark asynchronously using the IAsyncResult asynchronous design pattern. 有关详细信息,请参阅 异步编程概述。For more information, see Asynchronous Programming Overview.
适用于
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
参数
- 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.
返回
书签恢复操作的结果。The result of the bookmark resumption operation.
注解
书签结果指示恢复操作是成功还是失败。The bookmark result indicates whether the resumption operation succeeded or failed.
适用于
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
参数
- 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
必须在此时间内完成恢复操作的时间间隔,否则,将取消该操作并引发 TimeoutException。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.
返回
对异步书签恢复操作的引用。A reference to the asynchronous bookmark resume operation.
注解
若要确定恢复操作是否成功,请调用 EndResumeBookmark。To determine if the resume operation was successful, call EndResumeBookmark. 可以从 EndResumeBookmark 方法的内部或外部调用 callback。EndResumeBookmark can be called from inside or outside of the callback method. 如果在恢复操作完成前调用 EndResumeBookmark,则此调用将会被阻止,直至恢复操作完成。If EndResumeBookmark is called before the resume operation completes, it blocks until the resume operation completes. 如果恢复操作未在指定的超时间隔内完成,则将在 TimeoutException 中引发 EndResumeBookmark。If the resume operation does not complete within the specified time-out interval a TimeoutException is thrown from EndResumeBookmark.
此方法使用 IAsyncResult 异步设计模式以异步方式恢复书签。This method resumes a bookmark asynchronously using the IAsyncResult asynchronous design pattern. 有关详细信息,请参阅 异步编程概述。For more information, see Asynchronous Programming Overview.
适用于
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
参数
- 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.
返回
书签恢复操作的结果。The result of the bookmark resumption operation.
注解
书签结果指示恢复操作是成功还是失败。The bookmark result indicates whether the resumption operation succeeded or failed.