语言

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。

适用于