Share via


ResultPropertyCollection.Item[String] 屬性

定義

從這個集合取得具有指定名稱的屬性。

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

參數

name
String

要擷取的屬性名稱。

屬性值

ResultPropertyValueCollection,具有指定的名稱。

備註

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

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

適用於