NumericAttribute Class

Definition

Provide limits on the possible values in a numeric field or property.

[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
Inheritance
NumericAttribute
Attributes

Remarks

By default the limits are the min and max of the underlying field type.

Constructors

NumericAttribute(Double, Double)

Specify the range of possible values for a number field.

Fields

Max

Max possible value.

Min

Min possible value.

Applies to