PrintPort 类

定义

表示打印服务器上的打印机端口。 每个打印队列都具有分配的打印端口。

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 窗体应用程序打印,请参阅 System.Drawing.Printing 命名空间。

属性

IsDisposed

获取或设置一个值,该值指示该对象是否已被释放。

(继承自 PrintSystemObject)
Name

获取对象的名称。

(继承自 PrintSystemObject)
Parent

获取对象的父级。

(继承自 PrintSystemObject)
PropertiesCollection

获取特性和值对的集合。

(继承自 PrintSystemObject)

方法

Commit()

请勿使用。

Dispose()

释放由 PrintSystemObject 使用的所有资源。

(继承自 PrintSystemObject)
Dispose(Boolean)

释放由 PrintSystemObject 占用的非托管资源,还可以另外再释放托管资源。

(继承自 PrintSystemObject)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
Initialize()

初始化 PrintSystemObject 的属性。

(继承自 PrintSystemObject)
InternalDispose(Boolean)

在派生类中重写时,请释放正在由 PrintSystemObject 使用的非托管资源,也可以选择性地释放正在使用的托管资源。

(继承自 PrintSystemObject)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
Refresh()

请勿使用。

ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于