Expand Minimize

Type.GetEnumValues Method

Returns an array of the values of the constants in the current enumeration type.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

abstract GetEnumValues : unit -> Array  
override GetEnumValues : unit -> Array

Return Value

Type: System.Array
An 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.

ExceptionCondition
ArgumentException

The current type is not an enumeration.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft