Partilhar via


ValidationProvider.ValidationResultFormat Property

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Gets or sets the format to use when formatting validation results to post to an ErrorProvider.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WinForms
Assembly:  Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WinForms (in Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WinForms.dll)

Syntax

'Declaration
<DefaultValueAttribute("{0}")> _
PublicPropertyValidationResultFormatAs String
[DefaultValueAttribute("{0}")]
public string ValidationResultFormat { get; set; }
[DefaultValueAttribute(L"{0}")]
public:
property String^ ValidationResultFormat {
    String^ get ();
    voidset (String^ value);
}
publicfunction getValidationResultFormat () : String
publicfunction setValidationResultFormat (value : String)

Remarks

The value is a standard string formatting template. The supplied format items are:

{0} The ValidationResult message.
{1} The ValidationResult key.
{2} The ValidationResult tag.

See Also

ValidationProvider Class

Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WinForms Namespace

StringFormat(String, Object)

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.