This topic has not yet been rated - Rate this topic

Validator.TryValidateObject Method

Determines whether the specified object is valid.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  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.
Top
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ