WorkflowApplication.EndTerminate(IAsyncResult) 方法

定義

等候暫止的非同步終止作業完成。Waits for the pending asynchronous terminate operation to complete.

public:
 void EndTerminate(IAsyncResult ^ result);
public void EndTerminate (IAsyncResult result);
member this.EndTerminate : IAsyncResult -> unit
Public Sub EndTerminate (result As IAsyncResult)

參數

result
IAsyncResult

非同步終止作業。The asynchronous terminate operation.

備註

呼叫這個方法即可判斷 BeginTerminate 作業是否成功。This method can be called to determine whether a BeginTerminate operation was successful. 如果在終止作業完成之前呼叫,它會封鎖直到作業完成為止。If called before the terminate operation completes, it blocks until the operation is complete.

這個方法會使用 BeginTerminate 非同步設計模式來完成非同步的 IAsyncResult 作業。This method completes an asynchronous BeginTerminate operation using the IAsyncResult asynchronous design pattern. 如需詳細資訊, 請參閱非同步程式設計總覽For more information, see Asynchronous Programming Overview.

適用於