Name
Enum Statement
Synopsis
accessmodifier
Enumname [As type]
membername
[=constantexpression
]membername
[=constantexpression
] ... End Enum
accessmodifier
optional; KeywordPossible values are
Public
,Private
,Friend
,Protected
, orProtected
Friend
name
required; String literalThe name of the enumerated data type
membername
required; String literalThe name of a member of the enumerated data type
constantexpression
optional; LongThe value to be assigned to
membername
type
optional; KeywordThe data type of the enumeration. All enumerated members must be integers; possible values are
Byte
,Short
,Integer
, andLong
Description
Defines an enumerated data type. All of the values of the data type
are defined by the instances of
membername
.
Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.