Share via


PrintPortProperty 构造函数

定义

初始化 PrintPortProperty 类的新实例。

重载

PrintPortProperty(String)

针对指定的属性初始化 PrintPortProperty 类的新实例。

PrintPortProperty(String, Object)

初始化 PrintPortProperty 类的新实例,该类具有指定属性的指定值。

PrintPortProperty(String)

针对指定的属性初始化 PrintPortProperty 类的新实例。

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)

参数

attributeName
String

PrintPort 表示的 PrintPortProperty 属性的名称。

注解

attributeName拼写应与打印系统对象的某个特定PrintPort属性的名称完全相同,包括大小写。 例如, QueuePort 对象的 属性 PrintQueue 必须拼写为“QueuePort”,而不是“Port”或“Queueport”。

适用于

PrintPortProperty(String, Object)

初始化 PrintPortProperty 类的新实例,该类具有指定属性的指定值。

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)

参数

attributeName
String

PrintPort 表示的 PrintPortProperty 属性的名称。

attributeValue
Object

PrintPortProperty 表示的属性的值。

注解

attributeName拼写应与打印系统对象的某个特定PrintPort属性的名称完全相同,包括大小写。 例如, QueuePort 对象的 属性 PrintQueue 必须拼写为“QueuePort”,而不是“Port”或“Queueport”。

适用于