如果列舉型別的基礎型別不是整數型別,則引發錯誤。
命名空間: Microsoft.Data.Edm.Validation
組件: Microsoft.Data.Edm (在 Microsoft.Data.Edm.dll 中)
語法
'宣告
Public Shared ReadOnly EnumMustHaveIntegerUnderlyingType As ValidationRule(Of IEdmEnumType)
'用途
Dim value As ValidationRule(Of IEdmEnumType)
value = ValidationRules.EnumMustHaveIntegerUnderlyingType
public static readonly ValidationRule<IEdmEnumType> EnumMustHaveIntegerUnderlyingType
public:
static initonly ValidationRule<IEdmEnumType^>^ EnumMustHaveIntegerUnderlyingType
static val EnumMustHaveIntegerUnderlyingType: ValidationRule<IEdmEnumType>
public static final var EnumMustHaveIntegerUnderlyingType : ValidationRule<IEdmEnumType>