C#
VB
C++
Releases all resources used by this D2DSurface.
Because the D2DSurface class implements the System.IDisposable interface, it is best to follow the standard .NET dispose pattern when using the D2DSurface class. For more information, refer to the System.IDisposable interface documentation in MSDN.