Share via


IMemoryBufferReference.Closed Event

Definition

Occurs when MemoryBuffer.Close has been called, but before this IMemoryBufferReference has been closed.

// 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) 

Event Type

Remarks

This event gives one last chance to access the IMemoryBufferReference before it is gone.

Applies to