Export (0) Print
Expand All

7.4.1 Enumeration Members

Visual Studio .NET 2003

The members of an enumeration are the enumerated values declared in the enumeration and the members inherited from class System.Enum.

The scope of an enumeration member is the enumeration declaration body. This means that outside of an enumeration declaration, an enumeration member must always be qualified (unless the type is specifically imported into a namespace through a namespace import).

Declaration order for enumeration member declarations is significant when constant expression values are omitted. Enumeration members implicitly have Public access only; no access modifiers are allowed on enumeration member declarations.

EnumMemberDeclaration ::=
   [ Attributes ] Identifier [ = ConstantExpression ] LineTerminator

See Also

7.4.2 Enumeration Values | 7.4 Enumerations | Enum Statement (Visual Basic Language Reference) | Enumerations Overview(Visual Basic Language Concepts)

© 2014 Microsoft