Compartilhar via


CommonMessagePump.IVsCommonMessagePump.SetTimeout(UInt32) Method

Definition

Set the timeout value for the modal wait. Use 0xFFFFFFFF for an infinite wait.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetTimeout(System::UInt32 timeoutInMilliseconds) = Microsoft::VisualStudio::Shell::Interop::IVsCommonMessagePump::SetTimeout;
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetTimeout(unsigned int timeoutInMilliseconds) = Microsoft::VisualStudio::Shell::Interop::IVsCommonMessagePump::SetTimeout;
int Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetTimeout(unsigned int timeoutInMilliseconds);
int IVsCommonMessagePump.SetTimeout (uint timeoutInMilliseconds);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetTimeout : uint32 -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetTimeout : uint32 -> int
Function SetTimeout (timeoutInMilliseconds As UInteger) As Integer Implements IVsCommonMessagePump.SetTimeout

Parameters

timeoutInMilliseconds
UInt32

The timeout value. Use 0xFFFFFFFF for an infinite wait.

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