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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro