WaitHandle.Handle Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Cuidado
WaitHandle.Handle has been deprecated. Use the SafeWaitHandle property instead.
Cuidado
Use the SafeWaitHandle property instead.
Obtém ou define o identificador do sistema operacional nativo.
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 da propriedade
nativeint
Um IntPtr identificador do sistema operacional nativo que representa. O padrão é o valor do InvalidHandle campo.
- Atributos
Comentários
Atribuir um novo valor à Handle propriedade não fecha o identificador anterior. Isso pode resultar em um identificador vazado.
Não use essa propriedade no .NET Framework versão 2.0 ou posterior; em vez disso, use a SafeWaitHandle propriedade. Definir essa propriedade como um identificador válido também define a SafeWaitHandle propriedade, mas defini-la como InvalidHandle pode resultar em um identificador vazado.