PrintPort Class (System.Printing)

Switch View :
ScriptFree
.NET Framework Class Library
PrintPort Class

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

Inheritance Hierarchy

System.Object
  System.Printing.PrintSystemObject
    System.Printing.PrintPort

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

Visual Basic
Public NotInheritable Class PrintPort _
	Inherits PrintSystemObject
C#
public sealed class PrintPort : PrintSystemObject
Visual C++
public ref class PrintPort sealed : public PrintSystemObject
F#
[<Sealed>]
type PrintPort =  
    class
        inherit PrintSystemObject
    end

The PrintPort type exposes the following members.

Properties

  Name Description
Protected property IsDisposed Gets or sets a value that indicates whether the object has been disposed. (Inherited from PrintSystemObject.)
Public property Name Gets the name of the object. (Inherited from PrintSystemObject.)
Public property Parent Gets the parent of the object. (Inherited from PrintSystemObject.)
Public property PropertiesCollection Gets a collection of attribute and value pairs. (Inherited from PrintSystemObject.)
Top
Methods

  Name Description
Public method Commit Do not use. (Overrides PrintSystemObject.Commit().)
Public method Dispose() Releases all resources used by the PrintSystemObject. (Inherited from PrintSystemObject.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the PrintSystemObject and optionally releases the managed resources. (Inherited from PrintSystemObject.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases the resources that are being used by the PrintSystemObject. (Inherited from PrintSystemObject.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Initialize Initializes the properties of the PrintSystemObject. (Inherited from PrintSystemObject.)
Protected method InternalDispose 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. (Inherited from PrintSystemObject.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Refresh Do not use. (Overrides PrintSystemObject.Refresh().)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Remarks

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

Version Information

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Thread Safety

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

Reference