CommonMessagePump.AllowCancel 属性

定义

确定等待对话框是否有启用的 "取消" 按钮。

public:
 property bool AllowCancel { bool get(); void set(bool value); };
public:
 property bool AllowCancel { bool get(); void set(bool value); };
public bool AllowCancel { get; set; }
member this.AllowCancel : bool with get, set
Public Property AllowCancel As Boolean

属性值

Boolean

true 如果等待对话框具有已启用的 "取消" 按钮,则为; 否则为 false

注解

这可以在调用 ModalWaitForHandles 之前或在 ModalWaitForHandlesWithClient 中的某个回调期间设置。

适用于