Type.GetEnumValues Method ()
.NET Framework (current version)
Returns an array of the values of the constants in the current enumeration type.
Assembly: mscorlib (in mscorlib.dll)
Return Value
Type: System.ArrayAn array that contains the values. The elements of the array are sorted by the binary values (that is, the unsigned values) of the enumeration constants.
| Exception | Condition |
|---|---|
| ArgumentException | The current type is not an enumeration. |
.NET Framework
Available since 4.0
Available since 4.0
Show: