Dela via


IClientModelValidator Interface

Definition

Specifies the contract for performing validation in the browser.

MVC's validation system invokes IClientModelValidator to gather attributes that apply to the rendered HTML. The rendered view may have to reference JavaScript libraries, such as jQuery Unobtrusive Validation, to provide client validation based on the presence of these attributes.

public interface class IClientModelValidator
public interface IClientModelValidator
type IClientModelValidator = interface
Public Interface IClientModelValidator
Derived

Methods

AddValidation(ClientModelValidationContext)

Called to add client-side model validation.

Applies to