Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

SafeHandle::Finalize Method

Frees all resources associated with the handle.

Namespace:  System.Runtime.InteropServices
Assemblies:   mscorlib (in mscorlib.dll)
  System.Runtime.Handles (in System.Runtime.Handles.dll)

protected:
virtual void Finalize() override

Implements

Object::Finalize()

The Finalize method is the destructor for the SafeHandle class. Application code should not call this method directly.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Portable Class Library

Supported in: Portable Class Library

Show:
© 2015 Microsoft