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

參數

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.

備註

若要判斷繼續作業是否成功,請呼叫 EndResumeBookmarkTo 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 擲回 EndResumeBookmarkBy 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

參數

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.

備註

若要判斷繼續作業是否成功,請呼叫 EndResumeBookmarkTo 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 擲回 EndResumeBookmarkIf 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.

適用於