SafeHandle.Dispose-Methode: (Boolean)
Veröffentlicht: Oktober 2016
Gibt die von der SafeHandle-Klasse verwendeten, nicht verwalteten Ressourcen frei und gibt an, ob ein normaler Freigabevorgang ausgeführt werden soll.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
[SecurityCriticalAttribute]
protected virtual void Dispose(
bool disposing
)
protected:
[SecurityCriticalAttribute]
virtual void Dispose(
bool disposing
)
[<SecurityCriticalAttribute>]
abstract Dispose :
disposing:bool -> unit
[<SecurityCriticalAttribute>]
override Dispose :
disposing:bool -> unit
<SecurityCriticalAttribute>
Protected Overridable Sub Dispose (
disposing As Boolean
)
Parameter
disposing
Type: System.Booleantrue für einen normalen Freigabevorgang, false, um das Handle zu beenden.
Hinweise
You should never explicitly call the M:System.Runtime.InteropServices.SafeHandle.Dispose(System.Boolean) method with the disposing parameter set to false.
Sicherheit
for permission to call unmanaged code. Security action: F:System.Security.Permissions.SecurityAction.LinkDemand. Associated enumeration: F:System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode
Versionsinformationen
Universelle Windows-Plattform
Verfügbar seit 8
.NET Framework
Verfügbar seit 2.0
Portierbare Klassenbibliothek
Unterstützt in: portierbare .NET-Plattformen
Silverlight
Verfügbar seit 2.0
Windows Phone Silverlight
Verfügbar seit 7.0
Windows Phone
Verfügbar seit 8.1
Siehe auch
Dispose Überladen
SafeHandle-Klasse
System.Runtime.InteropServices-Namespace
Zurück zum Anfang