NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PrintPageEventArgs.Dispose

Disposes of the resources (other than memory) used by the PrintPageEventArgs.

[Visual Basic]
Public Sub Dispose()
[C#]
public void Dispose();
[C++]
public: void Dispose();
[JScript]
public function Dispose();

Remarks

Call Dispose when you are finished using the PrintPageEventArgs. The Dispose method leaves the PrintPageEventArgs in an unusable state. After calling Dispose, you must release all references to the PrintPageEventArgs so the memory it was occupying can be reclaimed by garbage collection.

Note    Dispose before you release your last reference to the PrintPageEventArgs. Otherwise, the resources the PrintPageEventArgs is using will not be freed until garbage collection calls the PrintPageEventArgs object's destructor.

See Also

PrintPageEventArgs Class | PrintPageEventArgs Members | System.Drawing.Printing Namespace