Collection Object Members 

A Visual Basic Collection object exposes the following members:

Property Description

Count Property

Read-only. Returns an Integer containing the number of elements in a Visual Basic collection.

Item Property

Read-only. Returns a specific element of a Visual Basic Collection object either by position or by key.

Method Description

Add Method

Adds an element to a Visual Basic Collection object.

Clear Method

Removes all elements from a Visual Basic Collection object.

Contains Method (Collection Object)

Returns a Boolean indicating whether a Visual Basic Collection object contains an element with a specific key.

GetEnumerator Method

Returns an enumerator object for iterating over the collection.

Remove Method

Removes an element from a Visual Basic Collection object.