Strokes.Dispose Method ()
Releases all resources used by the Strokes collection.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public Sub Dispose
'Usage
Dim instance As Strokes
instance.Dispose
public void Dispose ()
public:
virtual void Dispose () sealed
public final void Dispose ()
public final function Dispose ()
Not applicable.
Remarks
Calling Dispose allows the resources used by the collection to be reallocated for other purposes. For more information about garbage collection, see Programming for Garbage Collection.
Warning
To avoid a memory leak you must explicitly call this methodon any object or control in the Microsoft® Windows® XP Tablet PC Edition Software Development Kit (SDK) to which an event handler has been attached before the object orcontrol goes out of scope.
For any class in the Tablet PC SDK on which the Dispose method is defined, manually dispose of each instance of that class when it is no longer needed. Disposing of these objects improves your application's performance.
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
Strokes Class
Strokes Members
Microsoft.Ink Namespace
Microsoft.Ink.Strokes.Dispose