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 消失之前访问它的最后一次机会。