Collection Methods

The Collection type exposes the following members.

  Name Description
Public method Add Adds an element to a Collection object.
Public method Clear Deletes all elements of a Visual Basic Collection object.
Public method Contains Returns a Boolean value indicating whether a Visual Basic Collection object contains an element with a specific key.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetEnumerator Returns a reference to an enumerator object, which is used to iterate over a Collection object.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Remove(Int32) Removes an element from a Collection object.
Public method Remove(String) Removes an element from a Collection object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Explicit interface implemetation Private method ICollection.CopyTo Copies the elements of the Collection to an Array, starting at a particular Array index. Implements the ICollection interface.
Explicit interface implemetation Private method IDeserializationCallback.OnDeserialization Runs after the entire Collection object graph has been deserialized. Implements the IDeserializationCallback interface.
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator that iterates through the collection. Implements the ICollection interface.
Explicit interface implemetation Private method IList.Add Adds an item to the Collection object. Implements the IList interface.
Explicit interface implemetation Private method IList.Clear Removes all items from the Collection object. Implements the IList interface.
Explicit interface implemetation Private method IList.Contains Determines whether the Collection object contains a specific value. Implements the IList interface.
Explicit interface implemetation Private method IList.IndexOf Determines the index of a specific item in the Collection object. Implements the IList interface.
Explicit interface implemetation Private method IList.Insert Inserts an item to the Collection object at the specified index. Implements the IList interface.
Explicit interface implemetation Private method IList.Remove Removes the first occurrence of a specific object from the Collection object. Implements the IList interface.
Explicit interface implemetation Private method IList.RemoveAt Removes the Collection object item at the specified index. Implements the IList interface.
Explicit interface implemetation Private method ISerializable.GetObjectData Returns the data needed to serialize the Collection object. Implements the ISerializable interface.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft