Visual Basic .NET/Enumerations

Introduction
An enumeration is a set of related constants defined by a value type. By default, an enumeration is set to integer and sets the first constant to 0 and the second to 1 and so forth. This is so when values have not been declared.

Setting Enumerations
An enumeration that is set up with values 0, 1 and 2. (Values are set to integer as data type has not been declared): An enumeration that sets the constants to 30, 60 and 90.

Using Enumerations
To use an enumeration, you have to call up the enumeration collection name first. Then, like looking into the methods of a class, you then declare the enumeration that you want to use.

Visual Basic .NET/Énumérations