public class ValidationProvider
Public Class ValidationProvider
ValidationProvider | Initializes a new instance of the ValidationProvider class |
HasErrors | Gets a value that indicates whether the entity has validation errors. |
HasErrorsInRules | Gets a value that indicates whether the entity has errors in the validation rules. |
HasErrorsInView | Gets a value that indicates whether the entity has validation error notifications in the view. |
Rules | Get the collection of validation rules. |
UseValidationError | Indicates whether validation errors are returned using the model ValidationError. |
ApplyRules | Apply all validation rules. |
ApplyRules(String) | Applies validation rules for the specified property. |
ClearErrorsInRules | Remove errors from validation rules for a specific property or for the entire entity. |
GetErrors | Gets validation errors for a specific property or for the entire entity. |
GetErrorsInRules | Gets a list of validation rule errors for a specific property or the entire entity. |
GetErrorsInView | Gets a list of the view's error notifications for a specific property or for the entire entity. |
NotifyErrorInView | Allows validation errors that occur in the view to be transferred to this entity. Use for NotifyErrorInView(String, Object). |
Validate |
Applies validation rules to the entity and returns a value indicating whether all rules are valid
and does not contain error notifications from the view.
Use the and to determine where the errors occurred. To get the list for errors use and |
Validate(String) |
Applies validation rules to the entity and returns a value indicating whether all rules are valid
and does not contain error notifications from the view.
Use the and to determine where the errors occurred. To get the list for errors use and |
ErrorsChanged | Occurs when validation errors have changed for a property. |
ErrorsInRulesChanged | Occurs when validation rule errors have changed for a property. |
ErrorsInViewChanged | Occurs when view validation errors have changed for a property. |
GetAttributeFromT |
Get attribute from a class.
(Defined by ObjectExtensions) |
HasPropertyErrors |
Indicates whether the given property has data validation errors.
(Defined by ValidationProviderExtensions) |
HasPropertyErrorsInRules |
Indicates if the given property has errors in the validation rules.
(Defined by ValidationProviderExtensions) |
HasPropertyErrorsInView |
Indicates whether the given property has errors in the view.
(Defined by ValidationProviderExtensions) |
SetError |
Sets a validation error message for the indicated property.
(Defined by ValidationProviderExtensions) |
ValidateDataAnnotations |
Validate class with validator of DataAnnotations.
(Defined by ObjectExtensions) |