Compartilhar via


NoMessagePumpSyncContext.Wait Method

Synchronously blocks without a message pump.

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Public Overrides Function Wait ( _
    waitHandles As IntPtr(), _
    waitAll As Boolean, _
    millisecondsTimeout As Integer _
) As Integer
public override int Wait(
    IntPtr[] waitHandles,
    bool waitAll,
    int millisecondsTimeout
)
public:
virtual int Wait(
    array<IntPtr>^ waitHandles, 
    bool waitAll, 
    int millisecondsTimeout
) override
abstract Wait : 
        waitHandles:IntPtr[] * 
        waitAll:bool * 
        millisecondsTimeout:int -> int  
override Wait : 
        waitHandles:IntPtr[] * 
        waitAll:bool * 
        millisecondsTimeout:int -> int
public override function Wait(
    waitHandles : IntPtr[], 
    waitAll : boolean, 
    millisecondsTimeout : int
) : int

Parameters

  • waitHandles
    Type: array<System.IntPtr[]

    An array of type IntPtr that contains the native operating system handles.

  • waitAll
    Type: System.Boolean

    true to wait for all handles; false to wait for any handle.

  • millisecondsTimeout
    Type: System.Int32

    The number of milliseconds to wait, or Timeout.Infinite (-1) to wait indefinitely.

Return Value

Type: System.Int32
The array index of the object that satisfied the wait.

.NET Framework Security

See Also

Reference

NoMessagePumpSyncContext Class

Microsoft.VisualStudio.Threading Namespace