WorkflowApplication.EndRun(IAsyncResult) 方法

定義

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

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

參數

result
IAsyncResult

非同步執行作業。The asynchronous run operation.

備註

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

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

適用於