RangeAttribute
RangeAttribute
RangeAttribute
RangeAttribute
Class
Definition
Indicates the numeric range constraints for the value of a data field.
public : sealed class RangeAttribute : Attributepublic sealed class RangeAttribute : AttributePublic NotInheritable Class RangeAttribute Inherits Attribute// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.FoundationContract (introduced v1)
|
Constructors
RangeAttribute(Int32, Int32) RangeAttribute(Int32, Int32) RangeAttribute(Int32, Int32) RangeAttribute(Int32, Int32)
Creates and initializes a new instance of the attribute with the specified minimum and maximum values.
public : RangeAttribute(int minValue, int maxValue)public RangeAttribute(Int32 minValue, Int32 maxValue)Public Sub New(minValue As Int32, maxValue As Int32)// You can use this method in JavaScript.
Parameters
- minValue
- int Int32 Int32 Int32
The minimum value allowed.
- maxValue
- int Int32 Int32 Int32
The maximum value allowed.