CommonMessagePump.IVsCommonMessagePump.ModalWaitForObjectsWithClient 方法

定义

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

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.ModalWaitForObjectsWithClient(cli::array <IntPtr> ^ handles, System::UInt32 handleCount, Microsoft::VisualStudio::Shell::Interop::IVsCommonMessagePumpClientEvents ^ pClient) = Microsoft::VisualStudio::Shell::Interop::IVsCommonMessagePump::ModalWaitForObjectsWithClient;
int IVsCommonMessagePump.ModalWaitForObjectsWithClient (IntPtr[] handles, uint handleCount, Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePumpClientEvents pClient);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.ModalWaitForObjectsWithClient : nativeint[] * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePumpClientEvents -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.ModalWaitForObjectsWithClient : nativeint[] * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePumpClientEvents -> int
Function ModalWaitForObjectsWithClient (handles As IntPtr(), handleCount As UInteger, pClient As IVsCommonMessagePumpClientEvents) As Integer Implements IVsCommonMessagePump.ModalWaitForObjectsWithClient

参数

handles

IntPtr[]

nativeint[]

要等待的句柄数组。

handleCount
UInt32

句柄计数

pClient
IVsCommonMessagePumpClientEvents

的调用方实现 Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePumpClient

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

适用于