VB.Net implements a special object called Collection object that acts as
a container for objects of all types. Collection can hold other objects
as well as non object data. A Collection has four methods: - Add: This method adds a member to collection. Along with data
one can also specify a key value by which the data can be referenced. - Count: This returns the total number of items in the collection object. - Item: Retrieves an item from the collection. An item can be retrieved either using the index or a key if specified. - Remove: Removes an item from the collection.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
- Add: This method adds a member to collection. Along with data one can also specify a key value by which the data can be referenced.
- Count: This returns the total number of items in the collection object.
- Item: Retrieves an item from the collection. An item can be retrieved either using the index or a key if specified.
- Remove: Removes an item from the collection.