Gets or sets a ValueCollection object that contains the value or values of the attribute. This property applies to both single-valued and multi-valued attributes.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)

Usage

Visual Basic
Dim instance As Attrib
Dim value As ValueCollection

value = instance.Values

instance.Values = value

Syntax

Visual Basic
Public MustOverride Property Values As ValueCollection
C#
public abstract ValueCollection Values { get; set; }
C++
public:
virtual property ValueCollection^ Values {
		ValueCollection^ get () abstract;
		void set (ValueCollection^ value) abstract;
}
J#
/** @property */
public abstract ValueCollection get_Values ()

/** @property */
public abstract void set_Values (ValueCollection value)
JScript
public abstract function get Values () : ValueCollection

public abstract function set Values (value : ValueCollection)

Property Value

Returns a ValueCollection.

Exceptions

Exception type Condition
System.ArgumentNullException

Null reference value.

System.InvalidOperationException

You cannot convert one of the values that is contained in the source collection to the data type of the target collection.

Remarks

Assigning an empty ValueCollection object to the Values property is the same as calling the Clear method. They both remove all values from the ValueCollection.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also