RangeAttribute Constructor (Type, String, String)
Silverlight
Initializes a new instance of the RangeAttribute class with the specified minimum and maximum values converted to the specified type.
Namespace: System.ComponentModel.DataAnnotations
Assembly: System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
Parameters
- type
- Type: System.Type
The type of minimum and maximum. The type must implement the IComparable interface.
- minimum
- Type: System.String
The minimum value.
- maximum
- Type: System.String
The maximum value.
The RangeAttribute(Type, String, String) constructor enables you to specify minimum and maximum values that are not integer or double values. You provide the type for the minimum and maximum values. The string values you pass for the minimum and maximum parameters are converted to objects of the type you specified in the type parameter. The type must implement the IComparable interface.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show: