Visual Basic (Declaration) | |
---|---|
Overloads Public Sub Dispose() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As RasterImage instance.Dispose() |
C# | |
---|---|
public void Dispose() |
C++/CLI | |
---|---|
public: void Dispose(); |
For an example, refer to RasterImage.
The RasterImage class implements the System.IDisposable interface, it is recommended that you follow the standard .NET dispose pattern when using the RasterImage class. For more information, refer to the System.IDisposable interface documentation in MSDN, the IsDisposed property and the RasterImage.Disposed event.
Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7