Edit

Share via


PrintPortProperty Constructors

Definition

Initializes a new instance of the PrintPortProperty class.

Overloads

PrintPortProperty(String)

Initializes a new instance of the PrintPortProperty class for the specified property.

PrintPortProperty(String, Object)

Initializes a new instance of the PrintPortProperty class that has the specified value for the specified property.

PrintPortProperty(String)

Initializes a new instance of the PrintPortProperty class for the specified property.

public:
 PrintPortProperty(System::String ^ attributeName);
public PrintPortProperty (string attributeName);
new System.Printing.IndexedProperties.PrintPortProperty : string -> System.Printing.IndexedProperties.PrintPortProperty
Public Sub New (attributeName As String)

Parameters

attributeName
String

The name of the PrintPort property that the PrintPortProperty represents.

Remarks

The attributeName should be spelled exactly the same as the name of some particular PrintPort property of a print system object, including casing. For example, the QueuePort property of a PrintQueue object must be spelled "QueuePort", not "Port" or "Queueport".

Applies to

PrintPortProperty(String, Object)

Initializes a new instance of the PrintPortProperty class that has the specified value for the specified property.

public:
 PrintPortProperty(System::String ^ attributeName, System::Object ^ attributeValue);
public PrintPortProperty (string attributeName, object attributeValue);
new System.Printing.IndexedProperties.PrintPortProperty : string * obj -> System.Printing.IndexedProperties.PrintPortProperty
Public Sub New (attributeName As String, attributeValue As Object)

Parameters

attributeName
String

The name of the PrintPort property that the PrintPortProperty represents.

attributeValue
Object

The value of the property that the PrintPortProperty represents.

Remarks

The attributeName should be spelled exactly the same as the name of some particular PrintPort property of a print system object, including casing. For example, the QueuePort property of a PrintQueue object must be spelled "QueuePort", not "Port" or "Queueport".

Applies to