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