WaitOne Method (Int32, Boolean)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Blocks the current thread until the current WaitHandle receives a signal, using a 32-bit signed integer to specify the time interval and specifying whether to exit the synchronization domain before the wait.
Assembly: mscorlib (in mscorlib.dll)
- Type: System..::..Int32
The number of milliseconds to wait, or Timeout..::..Infinite (-1) to wait indefinitely.
- Type: System..::..Boolean
true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it afterward; otherwise, false.
Return ValueType: System..::..Boolean
true if the current instance receives a signal; otherwise, false.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.