PrintDateTimeProperty 构造函数

定义

初始化 PrintDateTimeProperty 类的新实例。

重载

名称 说明
PrintDateTimeProperty(String)

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

PrintDateTimeProperty(String, Object)

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

PrintDateTimeProperty(String)

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

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

参数

attributeName
String

所表示的属性DateTime的名称PrintDateTimeProperty

注解

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

适用于

PrintDateTimeProperty(String, Object)

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

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

参数

attributeName
String

所表示的属性DateTime的名称PrintDateTimeProperty

attributeValue
Object

表示的属性 PrintDateTimeProperty 的值。

注解

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

适用于