PropertyCollection.Item[String] 屬性

定義

取得指定的屬性。

public:
 property System::DirectoryServices::PropertyValueCollection ^ default[System::String ^] { System::DirectoryServices::PropertyValueCollection ^ get(System::String ^ propertyName); };
public System.DirectoryServices.PropertyValueCollection this[string propertyName] { get; }
member this.Item(string) : System.DirectoryServices.PropertyValueCollection
Default Public ReadOnly Property Item(propertyName As String) As PropertyValueCollection

參數

propertyName
String

要擷取的屬性名稱。

屬性值

指定之屬性的值。

備註

在 C# 中,這個屬性是 PropertyCollection 類別的索引子。

在 JScript 中,您可以使用類型所定義的預設索引屬性,但是不能明確定義自己的屬性。 不過,在類別上指定 expando 屬性時,會自動提供具有 Object 類型的預設索引屬性,以及的 String索引類型。

適用於