WaitHandle.WaitOne Method (System.Threading)

Switch View :
ScriptFree
.NET Framework Class Library
WaitHandle.WaitOne Method

Blocks the current thread until the current WaitHandle receives a signal.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method WaitOne() Blocks the current thread until the current WaitHandle receives a signal.
Public method WaitOne(Int32) Blocks the current thread until the current WaitHandle receives a signal, using a 32-bit signed integer to specify the time interval.
Public method WaitOne(TimeSpan) Blocks the current thread until the current instance receives a signal, using a TimeSpan to specify the time interval.
Public method WaitOne(Int32, Boolean) 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.
Public method WaitOne(TimeSpan, Boolean) Blocks the current thread until the current instance receives a signal, using a TimeSpan to specify the time interval and specifying whether to exit the synchronization domain before the wait.
Top
See Also

Reference

Community Content

richbeales
WaitOne(int)
Please be aware that the WaitOne(int) overload is only available in certain Service packs (e.g. .NET 2 SP2).  A MissingMethodException will be thrown on machines who don't have the latest versions.