Share via


Strokes.Finalize Method

Frees the resources of the current Strokes object before it is reclaimed by the garbage collector.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Protected Overrides Sub Finalize
'Usage
Me.Finalize()
protected override void Finalize()
protected:
virtual void Finalize() override
protected override function Finalize()

Remarks

In C# and Managed C++, finalizers are expressed using destructor syntax.

Note

If a derived class overrides the Finalize method, it should call the Finalize method of the base class, ensuring proper release of the object's resources.

The Strokes object's Finalize method is automatically invoked during garbage collection, unless finalization by the garbage collector has been disabled by a call to the SuppressFinalize method. Thus, application code usually does not call this method.

This method overrides the Finalize method. Starting with the Microsoft .NET Framework software development kit (SDK), see the topics: Finalize Methods and Destructors, Cleaning Up Unmanaged Resources, and Overriding the Finalize Method for more information.

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Strokes Class

Strokes Members

Microsoft.Ink Namespace