PropertyCollection.Item[String] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定的屬性。
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。