CommonMessagePump.AllowCancel 属性

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

命名空间:  Microsoft.VisualStudio.Shell
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Public Property AllowCancel As Boolean
public bool AllowCancel { get; set; }

属性值

类型:System.Boolean
true ,如果等待对话框已启用 " 取消 " 按钮,否则 false。

备注

这能在调用 ModalWaitForHandles 之前或在其中一个回调过程中 ModalWaitForHandlesWithClient。

.NET Framework 安全性

请参见

参考

CommonMessagePump 类

Microsoft.VisualStudio.Shell 命名空间