Between attribute
More...
|
override ValidationResult | IsValid (object value, ValidationContext validationContext) |
| Determines if the property is valid More...
|
|
Between attribute
Definition at line 37 of file Between.cs.
Utilities.Validation.BetweenAttribute.BetweenAttribute |
( |
object |
Min, |
|
|
object |
Max, |
|
|
string |
ErrorMessage = "" |
|
) |
| |
Constructor
- Parameters
-
Max | Max value |
Min | Min value |
ErrorMessage | Error message |
Definition at line 45 of file Between.cs.
override string Utilities.Validation.BetweenAttribute.FormatErrorMessage |
( |
string |
name | ) |
|
Formats the error message
- Parameters
-
- Returns
- The formatted string
Definition at line 67 of file Between.cs.
IEnumerable<ModelClientValidationRule> Utilities.Validation.BetweenAttribute.GetClientValidationRules |
( |
ModelMetadata |
metadata, |
|
|
ControllerContext |
context |
|
) |
| |
Gets the client side validation rules
- Parameters
-
metadata | Model meta data |
context | Controller context |
- Returns
- The list of client side validation rules
Definition at line 78 of file Between.cs.
override ValidationResult Utilities.Validation.BetweenAttribute.IsValid |
( |
object |
value, |
|
|
ValidationContext |
validationContext |
|
) |
| |
|
protected |
Determines if the property is valid
- Parameters
-
value | Value to check |
validationContext | Validation context |
- Returns
- The validation result
Definition at line 94 of file Between.cs.
object Utilities.Validation.BetweenAttribute.Max |
|
get |
Max value to compare to
Definition at line 55 of file Between.cs.
object Utilities.Validation.BetweenAttribute.Min |
|
get |
Min value to compare to
Definition at line 60 of file Between.cs.
The documentation for this class was generated from the following file: