This documentation is archived and is not being maintained.

PrintSystemObject Class

Defines basic properties and methods that are common to the objects of the printing system. Classes that derive from this class represent such objects as print queues, print servers, and print jobs.

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

public abstract class PrintSystemObject : IDisposable

The PrintSystemObject type exposes the following members.

Protected methodPrintSystemObject()Initializes a new instance of the PrintSystemObject class.
Protected methodPrintSystemObject(PrintSystemObjectLoadMode)Initializes a new instance of the PrintSystemObject class by using the specified PrintSystemObjectLoadMode.

Protected propertyIsDisposedGets or sets a value that indicates whether the object has been disposed.
Public propertyNameGets the name of the object.
Public propertyParentGets the parent of the object.
Public propertyPropertiesCollectionGets a collection of attribute and value pairs.

Protected methodStatic memberBaseAttributeNamesGets the names of the attributes of the derived class.
Public methodCommitWhen overridden in a derived class, writes any changes that your program has made to the object's properties to the actual software or hardware component that the object represents.
Public methodDispose()Releases all resources used by the PrintSystemObject.
Protected methodDispose(Boolean)Releases the unmanaged resources used by the PrintSystemObject and optionally releases the managed resources.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeReleases the resources that are being used by the PrintSystemObject. (Overrides Object.Finalize().)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInitializeInitializes the properties of the PrintSystemObject.
Protected methodInternalDisposeWhen overridden in a derived class, releases the unmanaged resources that are being used by the PrintSystemObject, and optionally releases the managed resources that are being used.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRefreshWhen overridden in a derived class, updates the properties of an object of the derived class so that its values match the values of the actual software or hardware component that the object represents.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

In addition to being the base class for print system objects, this class can be useful for calling methods when your application does not know or does not care what particular type of print system object it is using. For example, you could enumerate through a PrintSystemObjects collection of different object types, calling the Commit method on each of them in turn.

Notes to Inheritors

If you derive a class from PrintSystemObject, you may want to derive a collection of objects of that class from PrintSystemObjects.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.