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".

適用於