Skip to content

Commit 63d91b7

Browse files
agrtgaRon Petrusha
authored and
Ron Petrusha
committed
Update Validator.xml (dotnet#35)
* 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.
1 parent defa96f commit 63d91b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.ComponentModel.DataAnnotations/Validator.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
<format type="text/markdown"><![CDATA[
115115
116116
## 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. />.
118118
119119
]]></format>
120120
</remarks>
@@ -388,4 +388,4 @@
388388
</Docs>
389389
</Member>
390390
</Members>
391-
</Type>
391+
</Type>

0 commit comments

Comments
 (0)