Validator::TryValidateObject Method

 

Determines whether the specified object is valid.

Namespace:   System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticTryValidateObject(Object^, ValidationContext^, ICollection<ValidationResult^>^)

Determines whether the specified object is valid using the validation context and validation results collection.

System_CAPS_pubmethodSystem_CAPS_staticTryValidateObject(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.

Return to top
Show: