Breyta

Deila með


Type.GetEnumNames Method

Definition

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

String[]

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.

Applies to