IVsCommonMessagePump.SetTimeout(UInt32) Method

Definition

Specifies the maximum time (in milliseconds) to wait for objects to signal.

C#
public int SetTimeout(uint dwTimeoutInMilliseconds);

Parameters

dwTimeoutInMilliseconds
UInt32

The maximum time in milliseconds.

Returns

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

Remarks

The method returns if the interval elapses, even if the conditions specified by the fWaitForAllObjects parameter was not met. If dwMilliseconds is zero, the method tests the states of the specified objects and returns immediately. If the parameter is INFINITE (0xFFFFFFFF), the method's timeout interval never elapses.

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022