Returns the underlying type of the enumeration.
[Visual Basic] Public Shared Function GetUnderlyingType( _ ByVal enumType As Type _ ) As Type [C#] public static Type GetUnderlyingType( Type enumType ); [C++] public: static Type* GetUnderlyingType( Type* enumType ); [JScript] public static function GetUnderlyingType( enumType : Type ) : Type;
The underlying type of the enumeration
Exception Type | Condition |
---|---|
ArgumentNullException | The enumType parameter is a null reference (in Visual Basic Nothing). |
ArgumentException | The enumType parameter is not an Enum type. |