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 实例。

适用于