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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Tickets als Feedbackmechanismus für Inhalte auslaufen lassen und es durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unter:Einreichen und Feedback anzeigen für