Try Microsoft Edge A fast and secure browser that's designed for Windows 10 No thanks Get started
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Retrieves an array of the names of the constants in a specified enumeration.
'Declaration Public Shared Function GetNames ( _ enumType As Type _ ) As String()
enumType is Nothing.
enumType is not an Enum.
The elements of the return value array are sorted by the binary values of the enumerated constants (that is, by their unsigned magnitude). If there are enumerated constants with the same value, the order of their corresponding names is unspecified.
The following example illustrates the use of the GetNames method.