CommonMessagePump.IVsCommonMessagePump.ModalWaitForObjectsWithClient 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过泵处理消息来阻止当前线程,直到超时或指定的一个句柄发出信号。
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 。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。