ClientValidationRule Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes a single client-side validation rule produced by an IClientValidationAdapter.
public sealed class ClientValidationRule
type ClientValidationRule = class
Public NotInheritable Class ClientValidationRule
- Inheritance
-
ClientValidationRule
Constructors
| Name | Description |
|---|---|
| ClientValidationRule(String, String) |
Creates a new rule with the specified name and error message. |
Properties
| Name | Description |
|---|---|
| ErrorMessage |
Gets the formatted error message for this rule. Rendered as the value of |
| Name |
Gets the rule name. Rendered as the suffix of |
| Parameters |
Gets the parameters associated with this rule, keyed by parameter name. |
Methods
| Name | Description |
|---|---|
| WithParameter(String, Object) |
Adds or replaces a parameter on the rule. |