CommonMessagePump.IVsCommonMessagePump.SetAllowCancel(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.