AppWindowCloseRequestedEventArgs 类

定义

为 AppWindow.CloseRequested 事件提供数据。

public ref class AppWindowCloseRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AppWindowCloseRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AppWindowCloseRequestedEventArgs
Public NotInheritable Class AppWindowCloseRequestedEventArgs
继承
Object Platform::Object IInspectable AppWindowCloseRequestedEventArgs
属性

Windows 要求

设备系列
Windows 10, version 1903 (在 10.0.18362.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v8.0 中引入)

属性

Cancel

获取或设置一个值,该值指示是否应取消关闭操作。

方法

GetDeferral()

获取一个延迟对象,用于管理 CloseRequested 事件处理程序中完成的异步工作。

适用于

另请参阅