Share via


PrintTicketProperty 构造函数

定义

初始化 PrintTicketProperty 类的新实例。

重载

PrintTicketProperty(String)

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

PrintTicketProperty(String, Object)

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

PrintTicketProperty(String)

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

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

参数

attributeName
String

PrintTicket 表示的 PrintTicketProperty 属性的名称。

注解

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

适用于

PrintTicketProperty(String, Object)

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

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

参数

attributeName
String

PrintTicket 表示的 PrintTicketProperty 属性的名称。

attributeValue
Object

PrintTicketProperty 表示的属性的值。

注解

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

适用于