WorkflowApplication.BeginLoadRunnableInstance 方法

定義

InstanceStore 啟始載入可執行工作流程執行個體的非同步程序。Initiates the asynchronous process of loading a runnable workflow instance from the InstanceStore.

多載

BeginLoadRunnableInstance(TimeSpan, AsyncCallback, Object)

使用指定逾時間隔,從 InstanceStore 啟始載入可執行工作流程執行個體的作業。Initiates an operation to load a runnable workflow instance from the InstanceStore using the specified time-out interval.

BeginLoadRunnableInstance(AsyncCallback, Object)

InstanceStore 啟始載入可執行工作流程執行個體的作業。Initiates an operation to load a runnable workflow instance from the InstanceStore.

備註

可執行執行個體是計時器或執行個體鎖定已過期的執行個體。A runnable instance is an instance for which a timer or instance lock has expired.

BeginLoadRunnableInstance(TimeSpan, AsyncCallback, Object)

使用指定逾時間隔,從 InstanceStore 啟始載入可執行工作流程執行個體的作業。Initiates an operation to load a runnable workflow instance from the InstanceStore using the specified time-out interval.

public:
 IAsyncResult ^ BeginLoadRunnableInstance(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginLoadRunnableInstance (TimeSpan timeout, AsyncCallback callback, object state);
member this.BeginLoadRunnableInstance : TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginLoadRunnableInstance (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

參數

timeout
TimeSpan

載入作業必須在作業取消並擲回 TimeoutException 前完成的間隔。The interval in which the load operation must complete before the operation is canceled and a TimeoutException is thrown.

callback
AsyncCallback

作業完成時要呼叫的方法。The method to be called when the operation is complete.

state
Object

選擇性的應用程式特定物件,其中包含非同步作業的相關資訊。An optional application-specific object containing information about the asynchronous operation.

傳回

非同步作業的參考。A reference to the asynchronous operation

備註

可執行執行個體是計時器或執行個體鎖定已過期的執行個體。A runnable instance is an instance for which a timer or instance lock has expired.

若要判斷載入作業是否成功,請呼叫 EndLoadRunnableInstanceTo determine if the load operation was successful, call EndLoadRunnableInstance. EndLoadRunnableInstance 可以從 callback 方法之內或之外呼叫。EndLoadRunnableInstance can be called from inside or outside of the callback method. 如果在繼續作業完成之前呼叫 EndLoadRunnableInstance,它會封鎖直到繼續作業完成為止。If EndLoadRunnableInstance is called before the resume operation completes, it blocks until the resume operation completes. 如果載入作業沒有在指定逾時間隔內完成,則會從 TimeoutException 擲回 EndLoadRunnableInstanceIf the load operation does not complete within the specified time-out interval a TimeoutException is thrown from EndLoadRunnableInstance.

這個方法會使用 IAsyncResult 非同步設計模式來非同步載入工作流程。This method loads a workflow asynchronously using the IAsyncResult asynchronous design pattern. 如需詳細資訊, 請參閱非同步程式設計總覽For more information, see Asynchronous Programming Overview.

BeginLoadRunnableInstance(AsyncCallback, Object)

InstanceStore 啟始載入可執行工作流程執行個體的作業。Initiates an operation to load a runnable workflow instance from the InstanceStore.

public:
 IAsyncResult ^ BeginLoadRunnableInstance(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginLoadRunnableInstance (AsyncCallback callback, object state);
member this.BeginLoadRunnableInstance : AsyncCallback * obj -> IAsyncResult
Public Function BeginLoadRunnableInstance (callback As AsyncCallback, state As Object) As IAsyncResult

參數

callback
AsyncCallback

作業完成時要呼叫的方法。The method to be called when the operation is complete.

state
Object

選擇性的應用程式特定物件,其中包含非同步作業的相關資訊。An optional application-specific object containing information about the asynchronous operation.

傳回

非同步作業的參考。A reference to the asynchronous operation

備註

可執行執行個體是計時器或執行個體鎖定已過期的執行個體。A runnable instance is an instance for which a timer or instance lock has expired.

若要判斷載入作業是否成功,請呼叫 EndLoadRunnableInstanceTo determine if the load operation was successful, call EndLoadRunnableInstance. EndLoadRunnableInstance 可以從 callback 方法之內或之外呼叫。EndLoadRunnableInstance can be called from inside or outside of the callback method. 如果在繼續作業完成之前呼叫 EndLoadRunnableInstance,它會封鎖直到繼續作業完成為止。If EndLoadRunnableInstance is called before the resume operation completes, it blocks until the resume operation completes. 根據預設,繼續作業必須在 30 秒內完成,否則會從 TimeoutException 擲回 EndLoadRunnableInstanceBy default, the resume operation must complete in 30 seconds or else a TimeoutException is thrown from EndLoadRunnableInstance.

這個方法會使用 IAsyncResult 非同步設計模式來非同步載入工作流程。This method loads a workflow asynchronously using the IAsyncResult asynchronous design pattern. 如需詳細資訊, 請參閱非同步程式設計總覽For more information, see Asynchronous Programming Overview.

適用於