Condividi tramite


WaitHandle.Handle Proprietà

Definizione

Attenzione

WaitHandle.Handle has been deprecated. Use the SafeWaitHandle property instead.

Attenzione

Use the SafeWaitHandle property instead.

Ottiene o imposta l'handle nativo del sistema operativo.

public:
 virtual property IntPtr Handle { IntPtr get(); void set(IntPtr value); };
[System.Obsolete("WaitHandle.Handle has been deprecated. Use the SafeWaitHandle property instead.")]
public virtual IntPtr Handle { get; set; }
[System.Obsolete("Use the SafeWaitHandle property instead.")]
public virtual IntPtr Handle { get; set; }
[System.Obsolete("Use the SafeWaitHandle property instead.")]
public virtual IntPtr Handle { get; [System.Security.SecurityCritical] set; }
public virtual IntPtr Handle { get; set; }
[<System.Obsolete("WaitHandle.Handle has been deprecated. Use the SafeWaitHandle property instead.")>]
member this.Handle : nativeint with get, set
[<System.Obsolete("Use the SafeWaitHandle property instead.")>]
member this.Handle : nativeint with get, set
[<System.Obsolete("Use the SafeWaitHandle property instead.")>]
[<set: System.Security.SecurityCritical>]
member this.Handle : nativeint with get, set
member this.Handle : nativeint with get, set
Public Overridable Property Handle As IntPtr

Valore della proprietà

IntPtr

nativeint

Oggetto IntPtr che rappresenta l'handle del sistema operativo nativo. Il valore predefinito è il valore del InvalidHandle campo.

Attributi

Commenti

L'assegnazione di un nuovo valore alla Handle proprietà non chiude l'handle precedente. Ciò può comportare una perdita di handle.

Non usare questa proprietà in .NET Framework versione 2.0 o successiva; utilizzare invece la SafeWaitHandle proprietà . L'impostazione di questa proprietà su un handle valido imposta anche la SafeWaitHandle proprietà , ma impostandola su InvalidHandle può comportare una perdita di handle.

Si applica a