Click or drag to resize
EnumGetNames Method
Retrieves an array of the names of the constants in a specified enumeration.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static string[] GetNames(
	Type enumType
)

Parameters

enumType
Type: SystemType
An enumeration type.

Return Value

Type: String
A string array of the names of the constants in enumType.
Exceptions
ExceptionCondition
ArgumentNullExceptionenumType is null.
ArgumentExceptionenumType parameter is not an Enum.
See Also