Strokes.Dispose Method
Releases all resources used by the Strokes collection.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
'Declaration
Public Sub Dispose
'Usage
Dim instance As Strokes
instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()
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.
Upozornění
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.
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.
Supported in: 3.0