This topic has not yet been rated - Rate this topic

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 using the validation context and validation results collection.
Public method Static member TryValidateObject(Object, ValidationContext, ICollection<ValidationResult>, Boolean) Determines whether the specified object is valid using the validation context, validation results collection, and a value that specifies whether to validate all properties.
Public method Static member TryValidateProperty Validates the property.
Public method Static member TryValidateValue Returns a value that indicates whether the specified value is valid with the specified attributes.
Public method Static member ValidateObject(Object, ValidationContext) Determines whether the specified object is valid using the validation context.
Public method Static member ValidateObject(Object, ValidationContext, Boolean) Determines whether the specified object is valid using the validation context, and a value that specifies whether to validate all properties.
Public method Static member ValidateProperty Validates the property.
Public method Static member ValidateValue Validates the specified attributes.
Top
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ