Visual Basic 2005 with .NET 3.0 Programmer's Reference

The syntax for declaring an enumerated type is as follows:

[attribute_list] [accessibility] [Shadows] Enum name [As type] [attribute_list] value_name [= initialization_expression] [attribute_list] value_name [= initialization_expression] ... End Enum

Most of these terms (including attribute_list and accessibility) are similar to those used by variable declarations. See the section “Variable Declarations” earlier in this appendix for more information.

Категории