ModelValidator.GetClientValidationRules Method
When implemented in a derived class, returns metadata for client validation.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Overridable Function GetClientValidationRules As IEnumerable(Of ModelClientValidationRule)
public virtual IEnumerable<ModelClientValidationRule> GetClientValidationRules()
public:
virtual IEnumerable<ModelClientValidationRule^>^ GetClientValidationRules()
Return Value
Type: System.Collections.Generic.IEnumerable<ModelClientValidationRule>
The metadata for client validation.