System.Threading.WaitHandle.Handle Property

Gets or sets the native operating system handle.

Syntax

[System.Obsolete("In the profiles > 2.x, use SafeHandle instead of Handle")]
public virtual IntPtr Handle { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Assigning a new value to the WaitHandle.Handle property does not close the previous handle. This can result in a leaked handle.

Do not use this property in the .NET Framework version 2.0 or later; use the WaitHandle.SafeWaitHandle property instead. Setting this property to a valid handle also sets the WaitHandle.SafeWaitHandle property, but setting it to WaitHandle.InvalidHandle can result in a leaked handle.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0