CriticalHandle.SetHandleAsInvalid Método

Definição

Marca um identificador como inválido.Marks a handle as invalid.

public:
 void SetHandleAsInvalid();
public void SetHandleAsInvalid ();
member this.SetHandleAsInvalid : unit -> unit
Public Sub SetHandleAsInvalid ()

Comentários

Chame o SetHandleAsInvalid método somente quando souber que o identificador é inválido e você deseja marcá-lo como tal.Call the SetHandleAsInvalid method only when you know that your handle is invalid and you want to mark it as such. Isso não altera o valor do handle campo; ele marca apenas o identificador como inválido.Doing so does not change the value of the handle field; it only marks the handle as invalid. O identificador pode então conter um valor potencialmente obsoleto.The handle might then contain a potentially stale value. O efeito dessa chamada é que nenhuma tentativa é feita para liberar os recursos.The effect of this call is that no attempt is made to free the resources.

Assim como com o SetHandle método, use SetHandleAsInvalid somente se você precisar dar suporte a um identificador já existente.As with the SetHandle method, use SetHandleAsInvalid only if you need to support a pre-existing handle.

Aplica-se a