CommonMessagePump.IVsCommonMessagePump.SetAllowCancel Method

Controls if the wait dialog has an enabled cancel button.

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

Syntax

声明
Private Function SetAllowCancel ( _
    allowCancel As Boolean _
) As Integer Implements IVsCommonMessagePump.SetAllowCancel
用法
Dim instance As CommonMessagePump
Dim allowCancel As Boolean
Dim returnValue As Integer

returnValue = CType(instance, IVsCommonMessagePump).SetAllowCancel(allowCancel)
int IVsCommonMessagePump.SetAllowCancel(
    bool allowCancel
)
private:
virtual int SetAllowCancel(
    bool allowCancel
) sealed = IVsCommonMessagePump::SetAllowCancel
private abstract SetAllowCancel : 
        allowCancel:bool -> int 
private override SetAllowCancel : 
        allowCancel:bool -> int 
JScript does not support explicit interface implementations.

Parameters

Return Value

Type: System.Int32

Implements

IVsCommonMessagePump.SetAllowCancel(Boolean)

Remarks

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

.NET Framework Security

See Also

Reference

CommonMessagePump Class

CommonMessagePump Members

Microsoft.VisualStudio.Shell Namespace