ValueCollection
The ValueCollection class represents a collection of Value objects that all have the same data type.
The ValueCollection class is derived from the IEnumerable class.
Public Methods
The ValueCollection class has the following public methods.
Method | Description |
---|---|
Add (Byte[]) |
Adds a binary value to the collection. |
Add (Int64) |
Adds an integer value to the ValueCollection. |
Add (String) |
Adds a string value to the ValueCollection. |
Add (Value) |
Adds a Value object to the ValueCollection. |
Add (ValueCollection) |
Adds the contents of another ValueCollection to this ValueCollection. |
Clear |
Removes all values from the ValueCollection. |
Contains (Byte[]) |
Determines if the ValueCollection contains an element that matches a binary value. |
Contains (Int64) |
Determines if the ValueCollection contains an element that matches an integer value. |
Contains (String) |
Determines if the ValueCollection contains an element that matches a string value. |
Contains (Value) |
Determines if the ValueCollection contains an element that matches a Value object. |
Equals |
Determines if two objects are equal. |
GetEnumerator |
Retrieves a ValueCollectionEnumerator object that allows enumeration of the members of the collection. |
GetHashCode |
Serves as a hash function for a particular type. |
GetType |
Retrieves the Type of the current object. |
Remove (Byte[]) |
Removes the element that matches a binary value from the ValueCollection. |
Remove (Int64) |
Removes the element that matches an integer value from the ValueCollection. |
Remove (String) |
Removes the element that matches a string value from the ValueCollection. |
Remove (Value) |
Removes the element that matches a Value object from the ValueCollection. |
Set |
Removes all of the values of the ValueCollection and adds a single Boolean value. |
ToByteArrays |
Converts the ValueCollection into an array of byte arrays. |
ToIntegerArray |
Converts the ValueCollection into an array of integers. |
ToString |
Retrieves a String that represents the current object. |
ToStringArray |
Converts the ValueCollection into an array of strings. |
Public Properties
The ValueCollection class defines the following public properties.
Property | Description |
---|---|
Count | Data type: Int32 Access type: Read-only Retrieves the number of items in the ValueCollection object. |
Item | Data type: Value Access type: Read-only Retrieves a specific member of the collection. |
Protected Constructors
The ValueCollection class has the following protected constructor.
Constructor | Description |
---|---|
ValueCollection |
Creates an instance of the ValueCollection class. |
Remarks
There is no implicit ordering to values added to the collection.
Requirements
Product | ILM 2007 FP1 |
Namespace | Microsoft.MetadirectoryServices |
Assembly | Microsoft.MetadirectoryServices |
.NET Framework | .NET Framework 2.0 |
See Also
Send comments about this topic to Microsoft
Build date: 2/16/2009