Returns the values of the enumeration members of the given Enum.
[Visual Basic] Public Shared Function GetValues( _ ByVal enumType As Type _ ) As Object () [C#] public static object[] GetValues( Type enumType ); [C++] public: static Object* GetValues( Type* enumType ) []; [JScript] public static function GetValues( enumType : Type ) : Object[];
An array of type Object whose elements are the enumeration members of enumType.
Exception Type | Condition |
---|---|
ArgumentNullException | The enumType parameter is a null reference (in Visual Basic Nothing). |
ArgumentException | The enumType parameter is not an Enum type. |