Compare attribute
More...
|
override ValidationResult | IsValid (object value, ValidationContext validationContext) |
| Determines if the property is valid More...
|
|
Compare attribute
Definition at line 37 of file Compare.cs.
Utilities.Validation.CompareAttribute.CompareAttribute |
( |
object |
Value, |
|
|
ComparisonType |
Type, |
|
|
string |
ErrorMessage = "" |
|
) |
| |
Constructor
- Parameters
-
Value | Value to compare to |
Type | Comparison type to use |
ErrorMessage | Error message |
Definition at line 45 of file Compare.cs.
override string Utilities.Validation.CompareAttribute.FormatErrorMessage |
( |
string |
name | ) |
|
Formats the error message
- Parameters
-
- Returns
- The formatted string
Definition at line 67 of file Compare.cs.
IEnumerable<ModelClientValidationRule> Utilities.Validation.CompareAttribute.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 101 of file Compare.cs.
override ValidationResult Utilities.Validation.CompareAttribute.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 117 of file Compare.cs.
object Utilities.Validation.CompareAttribute.Value |
|
get |
Value to compare to
Definition at line 60 of file Compare.cs.
The documentation for this class was generated from the following file: