NumericAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
对数值字段或属性中可能的值提供限制。
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
[System.Serializable]
public class NumericAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
[<System.Serializable>]
type NumericAttribute = class
inherit Attribute
Public Class NumericAttribute
Inherits Attribute
- 继承
-
NumericAttribute
- 属性
注解
默认情况下,限制为基础字段类型的最小值和最大值。
构造函数
NumericAttribute(Double, Double) |
指定数字字段的可能值的范围。 |
字段
Max |
最大可能值。 |
Min |
最小可能值。 |