diff --git a/xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml b/xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml index 8fc51454565..55111bbf3d1 100644 --- a/xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml +++ b/xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml @@ -256,14 +256,14 @@ input value and a output value. The parameter provides additional context information that the method can use to determine the context that it is used in. The output parameter enables the method to return an error message. - - If the method returns `null` for the parameter or if it returns an empty value for the property, the default method will be called to compose the error message. - + The custom method specified by this property must be public and static, and it must return a value. It must also take at least one input parameter that specifies the object to validate. This parameter can be strongly typed. If a process passes a value of a different type, type conversion will be attempted. + + The specified method should return if a given object is valid. Otherwise it should return custom value with optional error message. + + If the method returns `null` or if it returns an empty value for the property, the default method will be called to compose the error message. + + The custom method can also take parameter that specify a input value. Parameter provides additional context information that the method can use to determine the context that it is used in. + ]]>