Share via


InkOverlay.Dispose Method

Releases all resources used by the InkOverlay object.

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

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As InkOverlay

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()

Implements

IDisposable.Dispose()

Remarks

Calling Dispose() allows the resources used by the object to be reallocated for other purposes. For more information about garbage collection, see Garbage Collection.

Warning

Starting with the Microsoft Windows XP Tablet PC Edition Software Development Kit (SDK), you must explicitly call the dispose method for any object or control to which an event handler has been attached before the object or control goes out of scope.

For any class in the Tablet PC SDK on which the Dispose() method is defined, manually dispose of each class instance when it is no longer needed. Disposing of these objects improves your application's performance.

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

InkOverlay Class

InkOverlay Members

Dispose Overload

Microsoft.Ink Namespace

InkOverlay.Dispose