WaitHandle.Handle Właściwość

Definicja

Przestroga

Use the SafeWaitHandle property instead.

Przestroga

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

Pobiera lub ustawia natywny uchwyt systemu operacyjnego.

public:
 virtual property IntPtr Handle { IntPtr get(); void set(IntPtr value); };
[System.Obsolete("Use the SafeWaitHandle property instead.")]
public virtual IntPtr Handle { get; set; }
[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; [System.Security.SecurityCritical] set; }
public virtual IntPtr Handle { get; set; }
[<System.Obsolete("Use the SafeWaitHandle property instead.")>]
member this.Handle : nativeint with 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.")>]
[<set: System.Security.SecurityCritical>]
member this.Handle : nativeint with get, set
member this.Handle : nativeint with get, set
Public Overridable Property Handle As IntPtr

Wartość właściwości

IntPtr

nativeint

Reprezentacja IntPtr natywnego dojścia systemu operacyjnego. Wartość domyślna to wartość InvalidHandle pola.

Atrybuty

Uwagi

Przypisanie nowej wartości do Handle właściwości nie powoduje zamknięcia poprzedniego dojścia. Może to spowodować wyciekły uchwyt.

Nie używaj tej właściwości w .NET Framework w wersji 2.0 lub nowszejSafeWaitHandle; zamiast tego użyj właściwości . Ustawienie tej właściwości na prawidłowy uchwyt powoduje również ustawienie SafeWaitHandle właściwości , ale ustawienie jej w taki sposób może spowodować InvalidHandle wyciek.

Dotyczy