共用方式為


IMemoryBufferReference.Closed 事件

定義

發生于呼叫 MemoryBuffer.Close ,但在關閉此 IMemoryBufferReference 之前。

// Register
event_token Closed(TypedEventHandler<IMemoryBufferReference, IInspectable const&> const& handler) const;

// Revoke with event_token
void Closed(event_token const* cookie) const;

// Revoke with event_revoker
IMemoryBufferReference::Closed_revoker Closed(auto_revoke_t, TypedEventHandler<IMemoryBufferReference, IInspectable const&> const& handler) const;
event TypedEventHandler<IMemoryBufferReference,object> Closed;
function onClosed(eventArgs) { /* Your code */ }
iMemoryBufferReference.addEventListener("closed", onClosed);
iMemoryBufferReference.removeEventListener("closed", onClosed);
- or -
iMemoryBufferReference.onclosed = onClosed;
Event Closed As TypedEventHandler(Of IMemoryBufferReference, Object) 

事件類型

備註

此事件會在 IMemoryBufferReference 消失之前,提供最後一個存取機會。

適用於