WaitHandle.Handle Property

NOTE: This property is now obsolete. The non-obsolete alternative is SafeWaitHandle.

Gets or sets the native operating system handle.

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

[ObsoleteAttribute("Use the SafeWaitHandle property instead.")] 
public virtual IntPtr Handle { get; set; }
/** @property */
public IntPtr get_Handle ()

/** @property */
public void set_Handle (IntPtr value)

public function get Handle () : IntPtr

public function set Handle (value : IntPtr)

Property Value

An IntPtr representing the native operating system handle. The default is the value of the InvalidHandle field.

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

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 1.0, 1.1
Obsolete (compiler warning) in 2.0

.NET Compact Framework

Supported in: 1.0
Obsolete (compiler warning) in 2.0

Community Additions