共用方式為


WindowClosedEventHandler 代理人

定義

表示將處理 Closed 事件的方法。

public delegate void WindowClosedEventHandler(Platform::Object ^ sender, CoreWindowEventArgs ^ e);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(230199649, 8407, 17887, 145, 34, 186, 137, 87, 103, 3, 186)]
class WindowClosedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(230199649, 8407, 17887, 145, 34, 186, 137, 87, 103, 3, 186)]
public delegate void WindowClosedEventHandler(object sender, CoreWindowEventArgs e);
Public Delegate Sub WindowClosedEventHandler(sender As Object, e As CoreWindowEventArgs)

參數

sender
Object

Platform::Object

IInspectable

附加處理常式的物件。

e
CoreWindowEventArgs

事件的事件資料。

屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

當 Window關閉時,就會發生Closed事件。 不過,UWP 應用程式通常會使用單一 Window 實例,而且不會開啟並關閉其他 Window 實例。

適用於