Language

IClientValidationRuleProvider Interface

Definition

Implemented by ValidationAttribute subclasses that contribute client-side validation rules to Blazor SSR forms.

public interface IClientValidationRuleProvider
type IClientValidationRuleProvider = interface
Public Interface IClientValidationRuleProvider

Remarks

Attributes that implement this interface participate in the client-side validation pipeline for forms rendered server-side. Rule names must match a validator registered on the JS side via Blazor.formValidation.addValidator(name, ...).

Methods

Name Description
GetClientValidationRules()

Produces the client-side validation rules for this attribute.

Applies to