PropertyCollection.Item Property (String)


Gets the specified property.

Namespace:   System.DirectoryServices
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

public PropertyValueCollection this[
	string propertyName
] { get; }


Type: System.String

The name of the property to retrieve.

Property Value

Type: System.DirectoryServices.PropertyValueCollection

The value of the specified property.

In C#, this property is the indexer for the PropertyCollection class.

In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. 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.

.NET Framework
Available since 1.1
Return to top