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.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'宣告
Public Function ModalWaitForHandles ( _
waitHandles As WaitHandle(), _
client As IVsCommonMessagePumpClientEvents _
) As CommonMessagePumpExitCode
'用途
Dim instance As CommonMessagePump
Dim waitHandles As WaitHandle()
Dim client As IVsCommonMessagePumpClientEvents
Dim returnValue As CommonMessagePumpExitCode
returnValue = instance.ModalWaitForHandles(waitHandles, _
client)
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<System.Threading.WaitHandle[]
- client
Type: Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePumpClientEvents
Caller implementation of IVsCommonMessagePumpClientEvents
Return Value
Type: Microsoft.VisualStudio.Shell.CommonMessagePumpExitCode
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.