Click or drag to resize
CanvasPrintDocumentDispose Method
Releases all resources used by the CanvasPrintDocument.

Namespace:  Microsoft.Graphics.Canvas.Printing
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void Dispose()

Implements

IDisposableDispose
Remarks

As CanvasPrintDocument contains events there is a potential of memory leaks if any registered event handlers are not removed. An alternative to explicitly removing the events handlers is to call Dispose.

Dispose should be called whenever the application is about to stop referencing an old instance - for example, when a new CanvasPrintDocument is created or when the page is unloaded.

See Also