PrintDriverProperty 构造函数

定义

初始化 PrintDriverProperty 类的新实例。

重载

名称 说明
PrintDriverProperty(String)

初始化指定属性的 PrintDriverProperty 类的新实例。

PrintDriverProperty(String, Object)

初始化具有指定属性的指定值的类的新实例 PrintDriverProperty

PrintDriverProperty(String)

初始化指定属性的 PrintDriverProperty 类的新实例。

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

参数

attributeName
String

所表示的属性PrintDriver的名称PrintDriverProperty

注解

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

适用于

PrintDriverProperty(String, Object)

初始化具有指定属性的指定值的类的新实例 PrintDriverProperty

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

参数

attributeName
String

所表示的属性PrintDriver的名称PrintDriverProperty

attributeValue
Object

表示的属性 PrintDriverProperty 的值。

注解

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

适用于