PrintSystemObject 類別

定義

定義列印系統之物件通用的基本屬性和方法。 這個類別所衍生的類型會將此類物件表示為列印佇列、列印伺服器和列印工作。

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

備註

除了是列印系統物件的基類之外,當您的應用程式不知道或不在意它所使用的特定列印系統物件類型時,這個類別對於呼叫方法很有用。 例如,您可以透過 PrintSystemObjects 不同物件類型的集合來列舉,接著在每個物件類型上呼叫 Commit 方法。

警告

在Windows服務或 ASP.NET 應用程式或服務內,不支援命名空間內的 System.Printing 類別。 嘗試從其中一個應用程式類型內使用這些類別可能會產生非預期的問題,例如服務效能降低和執行時間例外狀況。

如果您想要從Windows Forms應用程式列印,請參閱 System.Drawing.Printing 命名空間。

給實施者的注意事項

如果您從 PrintSystemObject 衍生類別,您可能會想要從 PrintSystemObjects 衍生該類別的物件集合。

建構函式

PrintSystemObject()

初始化 PrintSystemObject 類別的新執行個體。

PrintSystemObject(PrintSystemObjectLoadMode)

使用指定的 PrintSystemObject 來初始化 PrintSystemObjectLoadMode 類別的新執行個體。

屬性

IsDisposed

取得或設定一個值,指出是否已經處置物件。

Name

取得物件的名稱。

Parent

取得物件的父物件。

PropertiesCollection

取得屬性和值組的集合。

方法

BaseAttributeNames()

取得衍生類別的屬性名稱。

Commit()

在衍生類別中覆寫時,將您程式對物件屬性進行的任何變更寫入至物件表示的實際軟體或硬體元件中。

Dispose()

釋放 PrintSystemObject 所使用的所有資源。

Dispose(Boolean)

釋放 PrintSystemObject 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
Finalize()

釋放 PrintSystemObject 正在使用的資源。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
Initialize()

初始化 PrintSystemObject 的屬性。

InternalDispose(Boolean)

在衍生類別中被覆寫時,釋出 PrintSystemObject 正在使用的 Unmanaged 資源,並選擇性釋出正在使用的 Managed 資源。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Refresh()

在衍生類別中覆寫時,更新衍生類別的物件屬性,使其值符合其物件所表示之實際軟體或硬體元件的值。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於