You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update Validator.xml
The overload for TryValidateObject that provides a Boolean value to recursively check each property has remarks that are the same as the other overload that doesn't. The remarks indicate it won't recursively check properties which is contrary to the corresponding parameter. Clarity has been added to the remarks.
* Update remarks for Validator.xml
Modified remarks to clarify how validateAllProperties changes the actions taken by the TryValidateObject method. These changes are as suggested by Ron Petrusha.
Copy file name to clipboardExpand all lines: xml/System.ComponentModel.DataAnnotations/Validator.xml
+2-2
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@
114
114
<formattype="text/markdown"><![CDATA[
115
115
116
116
## Remarks
117
-
This method evaluates each <xref:System.ComponentModel.DataAnnotations.ValidationAttribute> instance that is attached to the object type. It also checks whether each property that is marked with <xref:System.ComponentModel.DataAnnotations.RequiredAttribute> is provided. It does not recursively validate the property values of the object.
117
+
This method evaluates each <xref:System.ComponentModel.DataAnnotations.ValidationAttribute> instance that is attached to the object type. It also checks whether each property that is marked with <xref:System.ComponentModel.DataAnnotations.RequiredAttribute> is provided. It validates the property values of the object if `validateAllProperties` is `true` but does not recursively validate properties of the objects returned by the properties. />.
0 commit comments