Type.GetEnumNames Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the names of the members of the current enumeration type.
public:
virtual cli::array <System::String ^> ^ GetEnumNames();
public virtual string[] GetEnumNames ();
abstract member GetEnumNames : unit -> string[]
override this.GetEnumNames : unit -> string[]
Public Overridable Function GetEnumNames () As String()
Returns
An array that contains the names of the members of the enumeration.
Exceptions
The current type is not an enumeration.
Remarks
The elements of the return value array are sorted by the binary values (that is, the unsigned values) of the enumerated constants. If the array contains enumerated constants with the same value, the order of their corresponding names is unspecified.