Enum.GetValues Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Retrieves an array of the values of the constants in a specified enumeration.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- enumType
- Type: System.Type
An enumeration type.
Return Value
Type: System.ArrayAn array that contains the values of the constants in enumType. The elements of the array are sorted by the binary values of the enumeration constants.
| Exception | Condition |
|---|---|
| ArgumentNullException | enumType is null. |
| ArgumentException | enumType is not an Enum. |
Show: