CommonMessagePump.ModalWaitForHandles 方法

定义

重载

ModalWaitForHandles(WaitHandle[], Int32)

通过泵处理消息来阻止当前线程,直到超时或指定的一个句柄发出信号。

ModalWaitForHandles(WaitHandle[], IVsCommonMessagePumpClientEvents)

通过泵处理消息来阻止当前线程,直到超时或指定的一个句柄发出信号。

ModalWaitForHandles(WaitHandle)

通过泵处理消息来阻止当前线程,直到超时或指定句柄发出信号。

ModalWaitForHandles(WaitHandle[], Int32)

通过泵处理消息来阻止当前线程,直到超时或指定的一个句柄发出信号。

public:
 Microsoft::VisualStudio::Shell::CommonMessagePumpExitCode ModalWaitForHandles(cli::array <System::Threading::WaitHandle ^> ^ waitHandles, [Runtime::InteropServices::Out] int % handleSignaledIndex);
public Microsoft.VisualStudio.Shell.CommonMessagePumpExitCode ModalWaitForHandles (System.Threading.WaitHandle[] waitHandles, out int handleSignaledIndex);
member this.ModalWaitForHandles : System.Threading.WaitHandle[] * int -> Microsoft.VisualStudio.Shell.CommonMessagePumpExitCode
Public Function ModalWaitForHandles (waitHandles As WaitHandle(), ByRef handleSignaledIndex As Integer) As CommonMessagePumpExitCode

参数

waitHandles
WaitHandle[]

句柄

handleSignaledIndex
Int32

弄已发出信号的句柄的索引。

返回

CommonMessagePumpExitCode

退出代码。

适用于

ModalWaitForHandles(WaitHandle[], IVsCommonMessagePumpClientEvents)

通过泵处理消息来阻止当前线程,直到超时或指定的一个句柄发出信号。

public:
 Microsoft::VisualStudio::Shell::CommonMessagePumpExitCode ModalWaitForHandles(cli::array <System::Threading::WaitHandle ^> ^ waitHandles, Microsoft::VisualStudio::Shell::Interop::IVsCommonMessagePumpClientEvents ^ client);
public Microsoft.VisualStudio.Shell.CommonMessagePumpExitCode ModalWaitForHandles (System.Threading.WaitHandle[] waitHandles, Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePumpClientEvents client);
member this.ModalWaitForHandles : System.Threading.WaitHandle[] * Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePumpClientEvents -> Microsoft.VisualStudio.Shell.CommonMessagePumpExitCode
Public Function ModalWaitForHandles (waitHandles As WaitHandle(), client As IVsCommonMessagePumpClientEvents) As CommonMessagePumpExitCode

参数

waitHandles
WaitHandle[]

等待句柄。

client
IVsCommonMessagePumpClientEvents

的调用方实现 Microsoft.VisualStudio.Shell.IVsCommonMessagePumpClientEvents

返回

CommonMessagePumpExitCode

退出代码。

适用于

ModalWaitForHandles(WaitHandle)

通过泵处理消息来阻止当前线程,直到超时或指定句柄发出信号。

public:
 Microsoft::VisualStudio::Shell::CommonMessagePumpExitCode ModalWaitForHandles(System::Threading::WaitHandle ^ waitHandle);
public Microsoft.VisualStudio.Shell.CommonMessagePumpExitCode ModalWaitForHandles (System.Threading.WaitHandle waitHandle);
member this.ModalWaitForHandles : System.Threading.WaitHandle -> Microsoft.VisualStudio.Shell.CommonMessagePumpExitCode
Public Function ModalWaitForHandles (waitHandle As WaitHandle) As CommonMessagePumpExitCode

参数

waitHandle
WaitHandle

等待句柄。

返回

CommonMessagePumpExitCode

退出代码。

适用于