Is attribute
More...
|
| override System.ComponentModel.DataAnnotations.ValidationResult | IsValid (object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext) |
| | Determines if the property is valid More...
|
| |
Is attribute
Definition at line 36 of file Is.cs.
| Utilities.Validation.IsAttribute.IsAttribute |
( |
IsValid |
Type, |
|
|
string |
ErrorMessage = "" |
|
) |
| |
Constructor
- Parameters
-
| Type | Validation type enum |
| ErrorMessage | Error message |
Definition at line 43 of file Is.cs.
| override string Utilities.Validation.IsAttribute.FormatErrorMessage |
( |
string |
name | ) |
|
Formats the error message
- Parameters
-
- Returns
- The formatted string
Definition at line 59 of file Is.cs.
| IEnumerable<ModelClientValidationRule> Utilities.Validation.IsAttribute.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 87 of file Is.cs.
| override System.ComponentModel.DataAnnotations.ValidationResult Utilities.Validation.IsAttribute.IsValid |
( |
object |
value, |
|
|
System.ComponentModel.DataAnnotations.ValidationContext |
validationContext |
|
) |
| |
|
protected |
Determines if the property is valid
- Parameters
-
| value | Value to check |
| validationContext | Validation context |
- Returns
- The validation result
Definition at line 102 of file Is.cs.
| IsValid Utilities.Validation.IsAttribute.Type |
|
get |
Type of validation to do
Definition at line 52 of file Is.cs.
The documentation for this class was generated from the following file:
- Utilities/Validation/Is.cs