Skip to content

error message may contain {0} #7437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,14 @@ This constructor chooses a very generic validation error message. Developers sub
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets an error message to associate with a validation control if validation fails.</summary>
<value>The error message that is associated with the validation control.</value>
<summary>Gets or sets an error message format to associate with a validation control if validation fails.</summary>
<value>The error message format that is associated with the control to be validated. The format may contain {0} insert.</value>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
This property is the error message that you associate with the validation control. It is used for non-localized error messages.
The `{0}` insert will be filled with the displayed name for the property that has failed validation. No other inserts are allowed.

]]></format>
</remarks>
Expand Down