語言

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 A,即指定名稱。

備註

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

在 JScript 中,你可以使用類型定義的預設索引屬性,但無法明確定義自己的屬性。 然而,在類別上指定 expando 屬性會自動提供一個預設的索引屬性,其型別為 Object,索引型別為 String。

適用於