Home > DeveloperSection > Interviews > What are collection objects in VB.net ?

Posted on    March-28-2011 8:59 AM

 VB.Net VB.Net 
Ratings:
 1 Answer(s)
  1482  View(s)
Rate this:

Amit Singh

Total Post:565

Points:2825
Posted on    March-28-2011 12:00 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick