Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Collection Constructor

Creates and returns a new Visual Basic Collection object.

Namespace:  Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public Collection()

The Visual Basic collection returned by this constructor is empty and does not have any initial capacity allocated.

Visual Basic collections are not compatible with the .NET Framework collections available in the System.Collections, System.Collections.Generic, and System.Collections.Specialized namespaces.

The following example creates a new Visual Basic collection and assigns it to the variable coll:

Dim coll As New Microsoft.VisualBasic.Collection()

This Collection object is one-based, which means that the index values of the elements range from 1 through the value of the Count property. Visual Basic collections hold elements of type Object.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft