Delen via


CommonMessagePump.ModalWaitForHandles Method (array<WaitHandle , IVsCommonMessagePumpClientEvents)

Blocks the current thread by pumping messages until either a timeout or one of the specified handles has been signaled.

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

Syntax

'Declaration
Public Function ModalWaitForHandles ( _
    waitHandles As WaitHandle(), _
    client As IVsCommonMessagePumpClientEvents _
) As CommonMessagePumpExitCode
public CommonMessagePumpExitCode ModalWaitForHandles(
    WaitHandle[] waitHandles,
    IVsCommonMessagePumpClientEvents client
)
public:
CommonMessagePumpExitCode ModalWaitForHandles(
    array<WaitHandle^>^ waitHandles, 
    IVsCommonMessagePumpClientEvents^ client
)
member ModalWaitForHandles : 
        waitHandles:WaitHandle[] * 
        client:IVsCommonMessagePumpClientEvents -> CommonMessagePumpExitCode
public function ModalWaitForHandles(
    waitHandles : WaitHandle[], 
    client : IVsCommonMessagePumpClientEvents
) : CommonMessagePumpExitCode

Parameters

  • waitHandles
    Type: array<WaitHandle[]

    The wait handles.

Return Value

Type: Microsoft.VisualStudio.Shell.CommonMessagePumpExitCode
The exit code.

.NET Framework Security

See Also

Reference

CommonMessagePump Class

ModalWaitForHandles Overload

Microsoft.VisualStudio.Shell Namespace