SafeHandle.DangerousRelease Metoda

Definice

Ručně sníží čítač odkazů na SafeHandle instanci.

public:
 void DangerousRelease();
[System.Security.SecurityCritical]
public void DangerousRelease ();
public void DangerousRelease ();
[<System.Security.SecurityCritical>]
member this.DangerousRelease : unit -> unit
member this.DangerousRelease : unit -> unit
Public Sub DangerousRelease ()
Atributy

Poznámky

Metoda DangerousRelease je protějškem metody DangerousAddRef. Vždy byste měli shodovat DangerousRelease volání metody s úspěšným voláním metody DangerousAddRef.

Upozornění

Stejně jako chybějící DangerousAddRef volání mohou způsobit nevracení prostředků, nespárovaná DangerousRelease volání mohou způsobit, že neplatné stavy popisovače se zobrazí ostatním vláknům.

Platí pro

Viz také