Validator Class
Provides members to help validate objects and members using values from the associated ValidationAttribute attribute.
Namespace: System.ComponentModel.DataAnnotations
Assembly: System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
The Validator type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | TryValidateObject(Object, ValidationContext, ICollection<ValidationResult>) | Determines whether the specified object is valid. |
![]() ![]() | TryValidateObject(Object, ValidationContext, ICollection<ValidationResult>, Boolean) | Determines whether the specified object is valid and, if requested, validates all of the properties of the object. |
![]() ![]() | TryValidateProperty | Determines whether the specified property value is valid. |
![]() ![]() | TryValidateValue | Determines whether a specified value is valid against a collection of validation attributes. |
![]() ![]() | ValidateObject(Object, ValidationContext) | Determines whether the specified object is valid and throws a ValidationException if the object is not valid. |
![]() ![]() | ValidateObject(Object, ValidationContext, Boolean) | Determines whether the specified object is valid and, if requested, whether all of the properties on the object are valid, and throws a ValidationException if the object is not valid. |
![]() ![]() | ValidateProperty | Determines whether the specified property value is valid and throws a ValidationException if the property is not valid. |
![]() ![]() | ValidateValue | Determines whether a specified value is valid against a collection of validation attributes and throws a ValidationException if the value is not valid. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show:
