Condividi tramite


CommonMessagePump.AllowCancel Property

Determines whether the wait dialog has an enabled cancel button.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Property AllowCancel As Boolean
public bool AllowCancel { get; set; }
public:
property bool AllowCancel {
    bool get ();
    void set (bool value);
}
member AllowCancel : bool with get, set
function get AllowCancel () : boolean 
function set AllowCancel (value : boolean)

Property Value

Type: Boolean
true if the wait dialog has an enabled cancel button, otherwise false.

Remarks

This may be set before calling ModalWaitForHandles or during one of the callbacks in ModalWaitForHandlesWithClient.

.NET Framework Security

See Also

Reference

CommonMessagePump Class

Microsoft.VisualStudio.Shell Namespace