NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Enum.GetUnderlyingType

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;

Parameters

enumType
The enumeration for which to retrieve the type.

Return Value

The underlying type of the enumeration

Exceptions

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

See Also

Enum Class | Enum Members | System Namespace