PrintPort 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示列印伺服器上的印表機通訊埠。 每個列印佇列都有一個指派的列印通訊埠。
public ref class PrintPort sealed : System::Printing::PrintSystemObject
public sealed class PrintPort : System.Printing.PrintSystemObject
type PrintPort = class
inherit PrintSystemObject
Public NotInheritable Class PrintPort
Inherits PrintSystemObject
- 繼承
屬性 PrintQueue.QueuePort 會 PrintPort 保存指派給佇列的物件。
注意
不支援命名空間內的 System.Printing 類別用於 Windows 服務或 ASP.NET 應用程式或服務。 嘗試從其中一個應用程式類型內使用這些類別可能會產生非預期的問題,例如服務效能降低和運行時間例外狀況。
如果您想要從 Windows Forms 應用程式列印,請參閱 System.Drawing.Printing 命名空間。
Is |
取得或設定一個值,指出是否已經處置物件。 (繼承來源 PrintSystemObject) |
Name |
取得物件的名稱。 (繼承來源 PrintSystemObject) |
Parent |
取得物件的父物件。 (繼承來源 PrintSystemObject) |
Properties |
取得屬性和值組的集合。 (繼承來源 PrintSystemObject) |
Commit() |
請勿使用。 |
Dispose() |
釋放 PrintSystemObject 所使用的所有資源。 (繼承來源 PrintSystemObject) |
Dispose(Boolean) |
釋放 PrintSystemObject 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。 (繼承來源 PrintSystemObject) |
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
Get |
做為預設雜湊函式。 (繼承來源 Object) |
Get |
取得目前執行個體的 Type。 (繼承來源 Object) |
Initialize() |
初始化 PrintSystemObject 的屬性。 (繼承來源 PrintSystemObject) |
Internal |
在衍生類別中被覆寫時,釋出 PrintSystemObject 正在使用的 Unmanaged 資源,並選擇性釋出正在使用的 Managed 資源。 (繼承來源 PrintSystemObject) |
Memberwise |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
Refresh() |
請勿使用。 |
To |
傳回代表目前物件的字串。 (繼承來源 Object) |
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |