PrintPort Class

 

Represents a printer port on a print server. Each print queue has a print port assigned to it.

Namespace:   System.Printing
Assembly:  System.Printing (in System.Printing.dll)


public sealed class PrintPort : PrintSystemObject

NameDescription
System_CAPS_pubpropertyName

Gets the name of the object. (Inherited from PrintSystemObject.)

System_CAPS_pubpropertyParent

Gets the parent of the object. (Inherited from PrintSystemObject.)

System_CAPS_pubpropertyPropertiesCollection

Gets a collection of attribute and value pairs. (Inherited from PrintSystemObject.)

NameDescription
System_CAPS_pubmethodCommit()

Do not use. (Overrides PrintSystemObject.Commit().)

System_CAPS_pubmethodDispose()

Releases all resources used by the PrintSystemObject. (Inherited from PrintSystemObject.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodRefresh()

Do not use. (Overrides PrintSystemObject.Refresh().)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The PrintQueue.QueuePort property holds the PrintPort object that is assigned to the queue.

System_CAPS_cautionCaution

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.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: