ClientValidationRule class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
A validation rule as the forms get it, from a validation attribute of a property, see GetClientRule.
public class ClientValidationRule
Public Members
| name | description |
|---|---|
| ClientValidationRule() | The default constructor. |
| Message { get; set; } | Gets or sets the message as it is, used when there is no text of the TextKey. The default message of the rule is used when neither is set. |
| Params { get; set; } | Gets or sets the parameters of the rule, e.g. the minimum and the maximum of a range. |
| Rule { get; set; } | Gets or sets the name of the rule on the client side, e.g. range. |
| TextKey { get; set; } | Gets or sets the local text key of the message, which is used when it has a text. |
See Also
- Source: ClientValidationRule.cs