列举型别可视为是资料型别,您可以用来建立多组常数以便与变数和属性搭配使用。
Enumerations are treated as data types, and you can use them to create sets of constants for use with variables and properties.
下列范例会显示没有使用建议之基础资料型别的两个列举型别。
The following example shows two enumerations that do not use the recommended underlying data type.
应用推荐