PrintSystemObjectPropertiesChangedEventArgs.Dispose Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Releases all resources used by the PrintSystemObjectPropertiesChangedEventArgs object.

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

public void Dispose()

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

System_CAPS_noteNote

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

.NET Framework
Available since 3.0
Return to top
Show: