共用方式為


WorkflowInstance.OnBeginAssociateKeys 方法

定義

由工作流程執行階段呼叫,以通知主機新的執行個體索引鍵應與這個執行個體相關聯。

protected public:
 abstract IAsyncResult ^ OnBeginAssociateKeys(System::Collections::Generic::ICollection<System::Runtime::DurableInstancing::InstanceKey ^> ^ keys, AsyncCallback ^ callback, System::Object ^ state);
protected internal abstract IAsyncResult OnBeginAssociateKeys (System.Collections.Generic.ICollection<System.Runtime.DurableInstancing.InstanceKey> keys, AsyncCallback callback, object state);
abstract member OnBeginAssociateKeys : System.Collections.Generic.ICollection<System.Runtime.DurableInstancing.InstanceKey> * AsyncCallback * obj -> IAsyncResult
Protected Friend MustOverride Function OnBeginAssociateKeys (keys As ICollection(Of InstanceKey), callback As AsyncCallback, state As Object) As IAsyncResult

參數

keys
ICollection<InstanceKey>

要與這個工作流程執行個體相關聯的執行個體索引鍵。

callback
AsyncCallback

作業完成時要呼叫的方法。

state
Object

選擇性的應用程式特定物件,其中包含非同步作業的相關資訊。

傳回

非同步關聯索引鍵作業的參考。

適用於