PrintSystemObjectPropertyChangedEventArgs.Dispose Method ()


Releases all resources used by the PrintSystemObjectPropertyChangedEventArgs.

Namespace:   System.Printing
Assembly:  System.Printing (in System.Printing.dll)

public void Dispose()

Call Dispose() when you are finished using the PrintSystemObjectPropertyChangedEventArgs. The Dispose() method leaves the PrintSystemObjectPropertyChangedEventArgs in an unusable state. After calling Dispose(), you must release all references to the PrintSystemObjectPropertyChangedEventArgs so that the garbage collector can reclaim the memory that the PrintSystemObjectPropertyChangedEventArgs was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.


Always call Dispose() before you release your last reference to the PrintSystemObjectPropertyChangedEventArgs. Otherwise, the resources it is using are not freed until the garbage collector calls the Finalize method of the PrintSystemObjectPropertyChangedEventArgs object.

.NET Framework
Available since 3.0
Return to top