PrintSystemObject 類別

定義

定義列印系統之物件通用的基本屬性和方法。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
繼承
PrintSystemObject
衍生
實作

備註

除了做為列印系統物件的基類之外,當您的應用程式不知道或不在意其使用的列印系統物件的特定類型時,這個類別也很適合用來呼叫方法。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.

警告

在 Windows 服務或 ASP.NET 應用程式或服務內,不支援在 System.Printing 命名空間中使用類別。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 Forms 應用程式進行列印,請參閱 System.Drawing.Printing 命名空間。If you want to print from a Windows Forms application, see the System.Drawing.Printing namespace.

給實施者的注意事項

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

建構函式

PrintSystemObject()

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

PrintSystemObject(PrintSystemObjectLoadMode)

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

屬性

IsDisposed

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

Name

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

Parent

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

PropertiesCollection

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

方法

BaseAttributeNames()

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

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()

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

Dispose(Boolean)

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

Equals(Object)

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

(繼承來源 Object)
Finalize()

釋放 PrintSystemObject 正在使用的資源。Releases the resources that are being used by the PrintSystemObject.

GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
Initialize()

初始化 PrintSystemObject 的屬性。Initializes the properties of the PrintSystemObject.

InternalDispose(Boolean)

在衍生類別中被覆寫時,釋出 PrintSystemObject 正在使用的 Unmanaged 資源,並選擇性釋出正在使用的 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()

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

(繼承來源 Object)
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()

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

(繼承來源 Object)

適用於