共用方式為


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) 

事件類型

備註

請注意,某些應用程式可能會以新的視窗順暢地取代目標視窗,這會結束任何進行中的擷取並引發此事件,即使目標視窗似乎沒有關閉也一樣。

適用於