IMemoryBufferReference.Closed 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于呼叫 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)
事件類型
TypedEventHandler<IMemoryBufferReference,IInspectable>
備註
此事件會在 IMemoryBufferReference 消失之前,提供最後一個存取機會。