This documentation is archived and is not being maintained.

PropertyValueCollection.Value Property

Gets or sets the values of the collection.

[Visual Basic]
Public Property Value As Object
public object Value {get; set;}
public: __property Object* get_Value();
public: __property void set_Value(Object*);
public function get Value() : Object;
public function set Value(Object);

Property Value

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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

PropertyValueCollection Class | PropertyValueCollection Members | System.DirectoryServices Namespace