LocalizableValidationRole class properties

ResStringName property

Gets or sets the name of a custom localized string to use as a validation error message.

Syntax

public bool ResStringName { get; set; }

Property Value

Type:                    System.String

Default value:   null

Remarks

A custom string with name ResStringName must be defined in all localization resources of the form.

When a form gets localized (i.e. its culture is changing) the value of this property is automatically used to extract custom string from the new localization resource and to set the validation error message on the assigned control.

 

 

ValidationError property

Gets or sets the validation error message.

Syntax

public string ValidationError { get; set; }

Property Value

Type:                    System.Boolean

Default value:   false

Remarks

Use this property only if the validation error message does not need to be localized, i.e. the ResStringName property is not set.