IClientValidationAdapter Interface

Definition

Implemented by ValidationAttribute subclasses that support client-side validation by emitting data-val-* HTML attributes.

public interface IClientValidationAdapter
type IClientValidationAdapter = interface
Public Interface IClientValidationAdapter

Methods

Name Description
GetClientValidationRules(String)

Produces the client-side validation rules for this attribute. Return an empty sequence if the attribute should not emit any client-side rule.

Applies to