IClientValidationRuleProvider Interface
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.
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. |