PrintPropertyDictionary.GetProperty(String) 方法

定义

获取表示特定属性的对象(属于从 PrintProperty 派生的类)。Gets the object (of a class that is derived from PrintProperty) that represents the specified property.

public:
 System::Printing::IndexedProperties::PrintProperty ^ GetProperty(System::String ^ attribName);
public System.Printing.IndexedProperties.PrintProperty GetProperty (string attribName);
member this.GetProperty : string -> System.Printing.IndexedProperties.PrintProperty
Public Function GetProperty (attribName As String) As PrintProperty

参数

attribName
String

PrintProperty 表示的属性的名称。The name of the property that is represented by the PrintProperty.

返回

PrintProperty

一个从 PrintProperty 派生的类的对象。An object of a class that is derived from the PrintProperty.

注解

attribName必须与打印系统对象的某些特定属性的名称拼写完全相同(包括大小写)。The attribName must be spelled exactly the same as the name of some particular property of a print system object, including casing. 例如,对象的 QueuePort 属性 PrintQueue 必须拼写为 "QueuePort",而不能是 "PrintPort"、"Port" 或 "QueuePort"。For example, the QueuePort property of a PrintQueue object must be spelled "QueuePort", not "PrintPort", "Port", or "Queueport".

适用于