ICustomAttributeTypeProvider<TType>.GetUnderlyingEnumType(TType) 方法
定义
获取给定的枚举类型符号的基础类型。Gets the underlying type of the given enum type symbol.
public:
System::Reflection::Metadata::PrimitiveTypeCode GetUnderlyingEnumType(TType type);
public System.Reflection.Metadata.PrimitiveTypeCode GetUnderlyingEnumType (TType type);
abstract member GetUnderlyingEnumType : 'ype -> System.Reflection.Metadata.PrimitiveTypeCode
Public Function GetUnderlyingEnumType (type As TType) As PrimitiveTypeCode
参数
- type
- TType
枚举类型。An enum type.
返回
一个类型代码,它表示枚举的基础类型。A type code that indicates the underlying type of the enumeration.
例外
给定的类型符号不表示枚举。The given type symbol does not represent an enum.