Freigeben über


CommonMessagePump.IVsCommonMessagePump.SetTimeout Method

Sets the timeout value for the modal wait.

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

Syntax

'Declaration
Private Function SetTimeout ( _
    timeoutInMilliseconds As UInteger _
) As Integer Implements IVsCommonMessagePump.SetTimeout
int IVsCommonMessagePump.SetTimeout(
    uint timeoutInMilliseconds
)
private:
virtual int SetTimeout(
    unsigned int timeoutInMilliseconds
) sealed = IVsCommonMessagePump::SetTimeout
private abstract SetTimeout : 
        timeoutInMilliseconds:uint32 -> int  
private override SetTimeout : 
        timeoutInMilliseconds:uint32 -> int
JScript does not support explicit interface implementations.

Parameters

  • timeoutInMilliseconds
    Type: UInt32

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

Return Value

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

Implements

IVsCommonMessagePump.SetTimeout(UInt32)

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