PrintSystemObject PrintSystemObject PrintSystemObject 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.

public ref class PrintSystemObject abstract : IDisposable
public abstract class PrintSystemObject : IDisposable
type PrintSystemObject = class
    interface IDisposable
Public MustInherit Class PrintSystemObject
Implements IDisposable
繼承
PrintSystemObjectPrintSystemObjectPrintSystemObjectPrintSystemObject
衍生
實作

備註

除了列印系統物件的基底類別,這個類別可以是適用於您的應用程式不知道或不在意特定的列印系統物件,它使用類型時,呼叫方法。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. 例如,您可以透過列舉PrintSystemObjects集合的不同的物件型別、 呼叫Commit每個開啟中的方法。For example, you could enumerate through a PrintSystemObjects collection of different object types, calling the Commit method on each of them in turn.

警告

類別內System.Printing命名空間不支援使用 Windows 服務或 ASP.NET 應用程式或服務中。Classes within the System.Printing namespace are not supported for use within a Windows service or ASP.NET application or service. 嘗試使用這些類別內其中一個應用程式類型可能會產生非預期的問題,例如會受到影響服務效能和執行階段例外狀況。Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.

如果您想要列印 Windows Form 應用程式,請參閱System.Drawing.Printing命名空間。If you want to print from a Windows Forms application, see the System.Drawing.Printing namespace.

給繼承者的注意事項

如果您衍生的類別PrintSystemObject,您可能想要衍生的物件,該類別的集合PrintSystemObjectsIf you derive a class from PrintSystemObject, you may want to derive a collection of objects of that class from PrintSystemObjects.

建構函式

PrintSystemObject() PrintSystemObject() PrintSystemObject() PrintSystemObject()

初始化 PrintSystemObject 類別的新執行個體。Initializes a new instance of the PrintSystemObject class.

PrintSystemObject(PrintSystemObjectLoadMode) PrintSystemObject(PrintSystemObjectLoadMode) PrintSystemObject(PrintSystemObjectLoadMode) PrintSystemObject(PrintSystemObjectLoadMode)

使用指定的 PrintSystemObject 來初始化 PrintSystemObjectLoadMode 類別的新執行個體。Initializes a new instance of the PrintSystemObject class by using the specified PrintSystemObjectLoadMode.

屬性

IsDisposed IsDisposed IsDisposed IsDisposed

取得或設定值,這個值,指出是否已經處置物件。Gets or sets a value that indicates whether the object has been disposed.

Name Name Name Name

取得物件名稱。Gets the name of the object.

Parent Parent Parent Parent

取得物件的父系。Gets the parent of the object.

PropertiesCollection PropertiesCollection PropertiesCollection PropertiesCollection

取得屬性 / 值組的集合。Gets a collection of attribute and value pairs.

方法

BaseAttributeNames() BaseAttributeNames() BaseAttributeNames() BaseAttributeNames()

取得衍生類別的屬性名稱。Gets the names of the attributes of the derived class.

Commit() Commit() Commit() Commit()

當在衍生類別中覆寫時,將寫入任何變更,應用程式具有對物件的屬性,以實際的軟體或硬體元件,此物件表示。When 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.

Dispose() Dispose() Dispose() Dispose()

釋放 PrintSystemObject 所使用的所有資源。Releases all resources used by the PrintSystemObject.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放 PrintSystemObject 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by the PrintSystemObject and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

正在使用的資源釋出PrintSystemObjectReleases the resources that are being used by the PrintSystemObject.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
Initialize() Initialize() Initialize() Initialize()

初始化的屬性PrintSystemObjectInitializes the properties of the PrintSystemObject.

InternalDispose(Boolean) InternalDispose(Boolean) InternalDispose(Boolean) InternalDispose(Boolean)

當在衍生類別中覆寫時,釋放 unmanaged 的資源所使用的PrintSystemObject,並選擇性地釋放 managed 的資源正在使用。When 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.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
Refresh() Refresh() Refresh() Refresh()

當在衍生類別中覆寫時,更新衍生類別物件的屬性,好讓其值符合物件所代表的實際軟體或硬體元件的值。When 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.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於