WorkflowInstance.OnBeginAssociateKeys(ICollection<InstanceKey>, AsyncCallback, Object) 方法

定義

由工作流程執行階段呼叫,以通知主機新的執行個體索引鍵應與這個執行個體相關聯。Called by the workflow runtime to notify the host that new instance keys should be associated with this instance.

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>

要與這個工作流程執行個體相關聯的執行個體索引鍵。The instance keys to associate with this workflow instance.

callback
AsyncCallback

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

state
Object

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

傳回

非同步關聯索引鍵作業的參考。A reference to the asynchronous associate keys operation.

適用於