WaitHandleExtensions Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

public static class WaitHandleExtensions

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: