Language

ClientValidationRule Class

Definition

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.

Applies to