Class ValidationRuleProperties
Defines editing properties common for all validation rules.
public abstract class ValidationRuleProperties
- Inheritance
-
objectValidationRuleProperties
- Derived
- Extension Methods
Remarks
When creating ValidationRule<TProperties, TClientProperties, TValue>
the TProperties
needs to inherit from ValidationRuleProperties.
Fields
ERROR_MESSAGE_ORDER
Order of the editing component for the ErrorMessage field.
public const int ERROR_MESSAGE_ORDER = 99
Field Value
- int
Properties
ErrorMessage
Gets or sets the validation error message. The available substitution parameters are dependent on the implementing validation rule. Keep null to use the default (validation rule specific) error message.
public virtual string ErrorMessage { get; set; }
Property Value
- string
Methods
GetDescriptionText(ILocalizationService)
Label describing the validation rule and its properties.
public abstract string GetDescriptionText(ILocalizationService localizationService)
Parameters
localizationService
ILocalizationService
Returns
- string