From a194bfad164b9afcd72b6a1a7957380c92d03a62 Mon Sep 17 00:00:00 2001 From: Christopher Yeleighton Date: Mon, 29 Nov 2021 20:04:32 +0100 Subject: [PATCH] error message may contain {0} --- .../ValidationAttribute.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xml/System.ComponentModel.DataAnnotations/ValidationAttribute.xml b/xml/System.ComponentModel.DataAnnotations/ValidationAttribute.xml index 334cca6283e..3390681eff4 100644 --- a/xml/System.ComponentModel.DataAnnotations/ValidationAttribute.xml +++ b/xml/System.ComponentModel.DataAnnotations/ValidationAttribute.xml @@ -197,13 +197,14 @@ This constructor chooses a very generic validation error message. Developers sub System.String - Gets or sets an error message to associate with a validation control if validation fails. - The error message that is associated with the validation control. + Gets or sets an error message format to associate with a validation control if validation fails. + The error message format that is associated with the control to be validated. The format may contain {0} insert.