WaitHandle.Handle Propriedade

Definição

Atenção

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

Atenção

Use the SafeWaitHandle property instead.

Obtém ou define o handle nativo do 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

Valor de Propriedade

IntPtr

nativeint

An IntPtr representando o handle nativo do sistema operativo. O valor padrão é o valor do InvalidHandle campo.

Atributos

Observações

Atribuir um novo valor à Handle propriedade não fecha o handle anterior. Isto pode resultar numa mancha com fugas.

Não use esta propriedade no .NET Framework versão 2.0 ou posterior; utilize a propriedade SafeWaitHandle em vez disso. Definir esta propriedade para um handle válido também define a SafeWaitHandle propriedade, mas defini-la InvalidHandle para pode resultar num handle com fuga.

Aplica-se a