Represents a printer port on a print server. Each print queue has a print port assigned to it.
Assembly: System.Printing (in System.Printing.dll)
Thetype exposes the following members.
|Commit||Do not use. (Overrides PrintSystemObject.Commit().)|
|Dispose()||Releases all resources used by the PrintSystemObject. (Inherited from PrintSystemObject.)|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|Refresh||Do not use. (Overrides PrintSystemObject.Refresh().)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
The PrintQueue.QueuePort property holds the object that is assigned to the queue.
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.
If you want to print from a Windows Forms application, see the System.Drawing.Printing namespace.