PrintPort 类

定义

表示打印服务器上的打印机端口。Represents a printer port on a print server. 每个打印队列都具有分配的打印端口。Each print queue has a print port assigned to it.

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
继承

注解

属性包含分配给队列的对象。PrintPort PrintQueue.QueuePortThe PrintQueue.QueuePort property holds the PrintPort object that is assigned to the queue.

注意

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 窗体应用程序进行打印, 请参阅System.Drawing.Printing命名空间。If you want to print from a Windows Forms application, see the System.Drawing.Printing namespace.

属性

IsDisposed

获取或设置一个值,该值指示该对象是否已被释放。Gets or sets a value that indicates whether the object has been disposed.

(继承自 PrintSystemObject)
Name

获取对象的名称。Gets the name of the object.

(继承自 PrintSystemObject)
Parent

获取对象的父级。Gets the parent of the object.

(继承自 PrintSystemObject)
PropertiesCollection

获取特性和值对的集合。Gets a collection of attribute and value pairs.

(继承自 PrintSystemObject)

方法

Commit()

请勿使用。Do not use.

Dispose()

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

(继承自 PrintSystemObject)
Dispose(Boolean)

释放 PrintSystemObject 使用的非托管资源,并选择性地释放托管资源。Releases the unmanaged resources used by the PrintSystemObject and optionally releases the managed resources.

(继承自 PrintSystemObject)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
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.

(继承自 PrintSystemObject)
InternalDispose(Boolean)

在派生类中重写时,请释放正在由 PrintSystemObject 使用的非托管资源,也可以选择性地释放正在使用的托管资源。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.

(继承自 PrintSystemObject)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Refresh()

请勿使用。Do not use.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于