Skip to main content
.NET Framework 4.6.2+

RuleRangeAttribute Constructors

Defines a validation rule that demands the target property’s value be within the specified value range (including the range’s end points).
Name Parameters Description
RuleRangeAttribute(DefaultContexts, Object, Object) targetContexts, minimumValue, maximumValue Initializes a new instance of the RuleRangeAttribute class.
RuleRangeAttribute(Object, Object) minimumValue, maximumValue Initializes a new instance of the RuleRangeAttribute class.
RuleRangeAttribute(String, DefaultContexts, Object, Object, String) id, targetContexts, minimumValue, maximumValue, messageTemplate Initializes a new instance of the RuleRangeAttribute class.
RuleRangeAttribute(String, DefaultContexts, Object, Object) id, targetContexts, minimumValue, maximumValue Initializes a new instance of the RuleRangeAttribute class.
RuleRangeAttribute(String, DefaultContexts, String, String, ParametersMode) id, targetContexts, minimumValue, maximumValue, mode Initializes a new instance of the RuleRangeAttribute class.
RuleRangeAttribute(String, DefaultContexts, String, String, String, ParametersMode) id, targetContexts, minimumValue, maximumValue, messageTemplate, mode Initializes a new instance of the RuleRangeAttribute class.
RuleRangeAttribute(String, String, Object, Object, String) id, targetContextIDs, minimumValue, maximumValue, messageTemplate Initializes a new instance of the RuleRangeAttribute class.
RuleRangeAttribute(String, String, Object, Object) id, targetContextIDs, minimumValue, maximumValue Initializes a new instance of the RuleRangeAttribute class.
RuleRangeAttribute(String, String, String, String, ParametersMode) id, targetContextIDs, minimumValue, maximumValue, mode Initializes a new instance of the RuleRangeAttribute class.
RuleRangeAttribute(String, String, String, String, String, ParametersMode) id, targetContextIDs, minimumValue, maximumValue, messageTemplate, mode Initializes a new instance of the RuleRangeAttribute class.
See Also