SafeHandle.SetHandleAsInvalid Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Marks a handle as no longer used.
public:
void SetHandleAsInvalid();
[System.Security.SecurityCritical]
public void SetHandleAsInvalid ();
public void SetHandleAsInvalid ();
[<System.Security.SecurityCritical>]
member this.SetHandleAsInvalid : unit -> unit
member this.SetHandleAsInvalid : unit -> unit
Public Sub SetHandleAsInvalid ()
- Attributes
Remarks
Call the SetHandleAsInvalid method only when you know that your handle no longer references a resource. Doing so does not change the value of the handle field; it only marks the handle as closed. The handle might then contain a potentially stale value. The effect of this call is that no attempt is made to free the resources.
As with the SetHandle method, use SetHandleAsInvalid only if you need to support a pre-existing handle.
Applies to
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tijekom 2024. postupno ćemo ukinuti servis Problemi sa servisom GitHub kao mehanizam za povratne informacije za sadržaj i zamijeniti ga novim sustavom za povratne informacije. Dodatne informacije potražite u članku:Pošaljite i pogledajte povratne informacije za