Share via


CommonMessagePump.IVsCommonMessagePump.SetAllowCancel(Boolean) Method

Definition

Controls if the wait dialog has an enabled cancel button.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetAllowCancel(bool allowCancel) = Microsoft::VisualStudio::Shell::Interop::IVsCommonMessagePump::SetAllowCancel;
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetAllowCancel(bool allowCancel) = Microsoft::VisualStudio::Shell::Interop::IVsCommonMessagePump::SetAllowCancel;
int Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetAllowCancel(bool allowCancel);
int IVsCommonMessagePump.SetAllowCancel (bool allowCancel);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetAllowCancel : bool -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetAllowCancel : bool -> int
Function SetAllowCancel (allowCancel As Boolean) As Integer Implements IVsCommonMessagePump.SetAllowCancel

Parameters

allowCancel
Boolean

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

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

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

Applies to