共用方式為


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 事件處理常式中完成的非同步工作。

適用於

另請參閱