The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Validator::TryValidateObject Method
.NET Framework (current version)
Determines whether the specified object is valid.
Assembly: System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
| 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. |
Show:

