Share via


GraphicsCaptureItem.Closed Event

Definition

An event raised when the target of the capture has been closed.

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

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

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

Event Type

Remarks

Note that some apps may seamlessly replace the targeted window with a new one, which will end any ongoing capture and raise this event even though the target window does not appear to have closed.

Applies to