共用方式為


InstanceStore.OnFreeInstanceHandle(InstanceHandle, Object) 方法

定義

釋放執行個體控制代碼時叫用。

protected:
 virtual void OnFreeInstanceHandle(System::Runtime::DurableInstancing::InstanceHandle ^ instanceHandle, System::Object ^ userContext);
protected virtual void OnFreeInstanceHandle (System.Runtime.DurableInstancing.InstanceHandle instanceHandle, object userContext);
abstract member OnFreeInstanceHandle : System.Runtime.DurableInstancing.InstanceHandle * obj -> unit
override this.OnFreeInstanceHandle : System.Runtime.DurableInstancing.InstanceHandle * obj -> unit
Protected Overridable Sub OnFreeInstanceHandle (instanceHandle As InstanceHandle, userContext As Object)

參數

instanceHandle
InstanceHandle

釋放的執行個體控制代碼。

userContext
Object

從 OnNewInstanceHandle 傳回持續性提供者的使用者內容資訊,如果未覆寫 OnNewInstanceHandle,則為 Null。

適用於