asp.net.ph

Enum.GetValues Method

System Namespace   Enum Class


Retrieves an array of the values of the constants in a specified enumeration.

[ VB ]
<Serializable>
Public Shared Function GetValues ( _
   ByVal enumType As Type _
) As Array

[ C# ]
[Serializable]
public static Array GetValues (
   Type enumType
);

[ C++ ]
[Serializable]
public: static Array* GetValues (
   Type* enumType
);

[JScript ]
public Serializable
static function GetValues (
   enumType : Type
) : Array;

Parameters

enumType
An enumeration type.

Return Value

An Array of the values of the constants in enumType. The elements of the array are sorted by the values of the enumeration constants.

Exceptions


Exception Type Condition
ArgumentNullException enumType is a null reference ( Nothing in Visual Basic ).
ArgumentException enumType is not an Enum.

See Also

Enum Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph