Lire en anglais

Partager via


ValidatePatternAttribute.ErrorMessage Property

Definition

Gets or sets the custom error message pattern that is displayed to the user. The text representation of the object being validated and the validating regex is passed as the first and second formatting parameters to the ErrorMessage formatting pattern.

[ValidatePattern("\s+", ErrorMessage="The text '{0}' did not pass validation of regex '{1}'")]
public:
 property System::String ^ ErrorMessage { System::String ^ get(); void set(System::String ^ value); };

Property Value

Applies to