ContentDialogClosingEventArgs 类

定义

为结束事件提供数据。

public ref class ContentDialogClosingEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ContentDialogClosingEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ContentDialogClosingEventArgs
Public NotInheritable Class ContentDialogClosingEventArgs
继承
Object Platform::Object IInspectable ContentDialogClosingEventArgs
属性

属性

Cancel

获取或设置一个值,该值可取消对话框的关闭。 如果为 True,则 Cancel 将取消默认行为。

Result

获取结束事件的 ContentDialogResult

方法

GetDeferral()

获取应用可用于异步响应结束事件的 ContentDialogClosingDeferral

适用于