共用方式為


CommonMessagePump.ModalWaitForHandles Method (array<WaitHandle , Int32%)

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.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'宣告
Public Function ModalWaitForHandles ( _
    waitHandles As WaitHandle(), _
    <OutAttribute> ByRef handleSignaledIndex As Integer _
) As CommonMessagePumpExitCode
'用途
Dim instance As CommonMessagePump
Dim waitHandles As WaitHandle()
Dim handleSignaledIndex As Integer
Dim returnValue As CommonMessagePumpExitCode

returnValue = instance.ModalWaitForHandles(waitHandles, _
    handleSignaledIndex)
public CommonMessagePumpExitCode ModalWaitForHandles(
    WaitHandle[] waitHandles,
    out int handleSignaledIndex
)
public:
CommonMessagePumpExitCode ModalWaitForHandles(
    array<WaitHandle^>^ waitHandles, 
    [OutAttribute] int% handleSignaledIndex
)
member ModalWaitForHandles : 
        waitHandles:WaitHandle[] * 
        handleSignaledIndex:int byref -> CommonMessagePumpExitCode 
public function ModalWaitForHandles(
    waitHandles : WaitHandle[], 
    handleSignaledIndex : int
) : CommonMessagePumpExitCode

Parameters

  • handleSignaledIndex
    Type: System.Int32%
    Index to the handle that was signaled.

Return Value

Type: Microsoft.VisualStudio.Shell.CommonMessagePumpExitCode

.NET Framework Security

See Also

Reference

CommonMessagePump Class

CommonMessagePump Members

ModalWaitForHandles Overload

Microsoft.VisualStudio.Shell Namespace