GraphicsCaptureItem.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) 

事件类型

注解

请注意,某些应用可能会将目标窗口无缝替换为新的窗口,这将结束任何正在进行的捕获并引发此事件,即使目标窗口似乎尚未关闭。

适用于