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 | |
|---|---|---|
|
TryValidateObject(Object, ValidationContext, ICollection<ValidationResult>) | Determines whether the specified object is valid using the validation context and validation results collection. |
|
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. |