Export (0) Print
Expand All

Validator Methods

The Validator type exposes the following members.

  Name Description
Public method Static member TryValidateObject(Object, ValidationContext, ICollection<ValidationResult>) Determines whether the specified object is valid.
Public method Static member TryValidateObject(Object, ValidationContext, ICollection<ValidationResult>, Boolean) Determines whether the specified object is valid and, if requested, validates all of the properties of the object.
Public method Static member TryValidateProperty Determines whether the specified property value is valid.
Public method Static member TryValidateValue Determines whether a specified value is valid against a collection of validation attributes.
Public method Static member ValidateObject(Object, ValidationContext) Determines whether the specified object is valid and throws a ValidationException if the object is not valid.
Public method Static member 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.
Public method Static member ValidateProperty Determines whether the specified property value is valid and throws a ValidationException if the property is not valid.
Public method Static member ValidateValue Determines whether a specified value is valid against a collection of validation attributes and throws a ValidationException if the value is not valid.
Top

Community Additions

ADD
Show:
© 2015 Microsoft