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 IClientValidationRuleProvider.
public sealed class ClientValidationRule
type ClientValidationRule = class
Public NotInheritable Class ClientValidationRule
- Inheritance
-
ClientValidationRule
Constructors
| Name | Description |
|---|---|
| ClientValidationRule(String, IReadOnlyDictionary<String,String>) |
Creates a rule with the specified name and optional parameters. |
Properties
| Name | Description |
|---|---|
| Name |
Gets the rule name. Matches the name registered with the JS validator. |
| Parameters |
Gets the parameters passed to the JS validator at runtime. Empty when no parameters apply. |