Share via


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

public virtual IEnumerable<ModelClientValidationRule> GetClientValidationRules()
public:
virtual IEnumerable<ModelClientValidationRule^>^ GetClientValidationRules()
abstract GetClientValidationRules : unit -> IEnumerable<ModelClientValidationRule>
override GetClientValidationRules : unit -> IEnumerable<ModelClientValidationRule>
Public Overridable Function GetClientValidationRules As IEnumerable(Of ModelClientValidationRule)

Return Value

Type: System.Collections.Generic.IEnumerable<ModelClientValidationRule>

The metadata for client validation.

See Also

ModelValidator Class
System.Web.Mvc Namespace

Return to top