SafeHandle.Dispose Method (Boolean)
.NET Framework (current version)
Releases the unmanaged resources used by the SafeHandle class specifying whether to perform a normal dispose operation.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- disposing
-
Type:
System.Boolean
true for a normal dispose operation; false to finalize the handle.
You should never explicitly call the Dispose method with the disposing parameter set to false.
SecurityPermission
for permission to call unmanaged code. Security action: LinkDemand. Associated enumeration: SecurityPermissionFlag.UnmanagedCode
Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: