مشاركة عبر


AppWindowCloseRequestedEventArgs Class

Definition

Provides data for the AppWindow.CloseRequested event.

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
Inheritance
Object Platform::Object IInspectable AppWindowCloseRequestedEventArgs
Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Properties

Cancel

Gets or sets a value that indicates whether the close operation should be canceled.

Methods

GetDeferral()

Gets a deferral object for managing asynchronous work done in the CloseRequested event handler.

Applies to

See also