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

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static Array GetValues(
	Type enumType
)

Parameters

enumType
Type: SystemType
The enumeration type to retrieve values from.

Return Value

Type: Array
An array that contains the values of the constants in enumType.
Exceptions
ExceptionCondition
ArgumentNullExceptionenumType is null.
ArgumentExceptionenumType is not an Enum.
See Also