SafeHandle.Dispose Method (Boolean)

 

Releases the unmanaged resources used by the SafeHandle class specifying whether to perform a normal dispose operation.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
protected virtual void Dispose(
	bool disposing
)

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
Return to top
Show: