PropertyValueCollection.Value Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the values of the collection.

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

public object Value { get; set; }

Property Value

Type: System.Object

If the collection is empty, the property value is a null reference (Nothing in Visual Basic). If the collection contains one value, the property value is that value. If the collection contains multiple values, the property value equals a copy of an array of those values.

If setting this property, the value or values are added to the PropertyValueCollection. Setting this property to a null reference (Nothing) clears the collection.

To add multiple values, set this property to an array of the values.


Demand is performed when an application sets this property if the UsePropertyCache is false.

.NET Framework
Available since 1.1
Return to top