PropertyCollection.Item[String] 属性
定义
获取指定属性。Gets the specified property.
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
要检索的属性的名称。The name of the property to retrieve.
属性值
指定的属性的值。The value of the specified property.
注解
在 C# 中,此属性是 PropertyCollection 类的索引器。In C#, this property is the indexer for the PropertyCollection class.
在 JScript 中,您可以使用某个类型定义的默认索引属性,但不能显式定义自己的属性。In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. 但是,在类上指定 expando 特性将自动提供一个对象类型和索引类型为的默认索引属性 String 。However, specifying the expando attribute on a class automatically provides a default indexed property with a type of Object and an index type of String.