Enum.GetUnderlyingType メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

<ComVisibleAttribute(True)> _ Public Shared Function GetUnderlyingType ( _ enumType As Type _ ) As Type
Dim enumType As Type Dim returnValue As Type returnValue = Enum.GetUnderlyingType(enumType)
- enumType
列挙型。
enumType の基になる Type。


GetUnderlyingType の使用方法については、次のコード例を参照してください。
Shared Function GetAsUnderlyingType(enval As [Enum]) As Object Dim entype As Type = enval.GetType() Dim undertype As Type = [Enum].GetUnderlyingType(entype) Return Convert.ChangeType(enval, undertype) End Function
static object GetAsUnderlyingType(Enum enval) { Type entype = enval.GetType(); Type undertype = Enum.GetUnderlyingType(entype); return Convert.ChangeType( enval, undertype ); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からEnum.GetUnderlyingType メソッドを検索する場合は、下記のリンクをクリックしてください。

- Enum.GetUnderlyingType メソッドのページへのリンク