System Namespace Enum Class
Retrieves an array of the names of the constants in a specified enumeration.
[ VB ]
<Serializable>
Public Shared Function GetNames ( _
ByVal enumType As Type _
) As String ( )
[ C# ]
[Serializable]
public static string [ ] GetNames (
Type enumType
);
[ C++ ]
[Serializable]
public: static String* GetNames (
Type* enumType
) __gc [ ];
[JScript ]
public Serializable
static function GetNames (
enumType : Type
) : String [ ];
- enumType
- An enumeration.
A string array of the names of the constants in enumType. The elements of the array are sorted by the values of the enumerated constants.
Enum Members