Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Type.GetEnumValues Method ()

.NET Framework (current version)

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

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

public virtual Array GetEnumValues()

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.

Exception Condition

The current type is not an enumeration.

.NET Framework
Available since 4.0
Return to top
© 2016 Microsoft