Attrib.Values Property
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
'Usage
Dim instance As Attrib
Dim value As ValueCollection
value = instance.Values
instance.Values = value
Syntax
'Declaration
Public MustOverride Property Values As ValueCollection
public abstract ValueCollection Values { get; set; }
public:
virtual property ValueCollection^ Values {
ValueCollection^ get () abstract;
void set (ValueCollection^ value) abstract;
}
/** @property */
public abstract ValueCollection get_Values ()
/** @property */
public abstract void set_Values (ValueCollection value)
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
Reference
Attrib Class
Attrib Members
Microsoft.MetadirectoryServices Namespace
ValueCollection
Attrib Class