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 |
最小値を指定できます。 |