WorkflowApplication.EndCancel(IAsyncResult) 方法

定義

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

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

參數

result
IAsyncResult

非同步取消作業。The asynchronous cancel operation.

備註

這個方法可判斷 BeginCancel 作業是否成功。This method determines whether a BeginCancel operation was successful. 如果在取消作業完成之前呼叫,它會封鎖直到取消作業完成為止。If called before the cancel operation completes, it blocks until the cancel operation is complete.

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

適用於