Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IClientValidatable Interface


Provides a way for the ASP.NET MVC validation framework to discover at run time whether a validator has support for client validation.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public interface IClientValidatable

System_CAPS_pubmethodGetClientValidationRules(ModelMetadata, ControllerContext)

When implemented in a class, returns client validation rules for that class.

The Models\AccountModels file that is created as part of a new ASP.NET MVC project contains the ValidatePasswordLengthAttribute class that implements the IClientValidatable interface. This file provides an example of how to implement the IClientValidatable interface.

Return to top
© 2018 Microsoft