WaitHandleExtensions Class

.NET Framework (current version)
 

Provides convenience methods to for working with a safe handle for a wait handle.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

System::Object
  System.Threading::WaitHandleExtensions

[ExtensionAttribute]
public ref class WaitHandleExtensions abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetSafeWaitHandle(WaitHandle^)

Gets the safe handle for a native operating system wait handle.

System_CAPS_pubmethodSystem_CAPS_staticSetSafeWaitHandle(WaitHandle^, SafeWaitHandle^)

Sets a safe handle for a native operating system wait handle.

The WaitHandleExtensions class includes two extension methods that allow you to create a safe handle for a wait handle and to retrieve the native operating system handle from a safe handle.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: