Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
7.4.1 Enumeration Members
Collapse the table of content
Expand the table of content

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)

© 2015 Microsoft