IClientValidatable.GetClientValidationRules(ModelMetadata, ControllerContext) IClientValidatable.GetClientValidationRules(ModelMetadata, ControllerContext) IClientValidatable.GetClientValidationRules(ModelMetadata, ControllerContext) Method

Definition

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

public System.Collections.Generic.IEnumerable<System.Web.Mvc.ModelClientValidationRule> GetClientValidationRules (System.Web.Mvc.ModelMetadata metadata, System.Web.Mvc.ControllerContext context);
abstract member GetClientValidationRules : System.Web.Mvc.ModelMetadata * System.Web.Mvc.ControllerContext -> seq<System.Web.Mvc.ModelClientValidationRule>
Public Function GetClientValidationRules (metadata As ModelMetadata, context As ControllerContext) As IEnumerable(Of ModelClientValidationRule)

Parameters

metadata
ModelMetadata ModelMetadata ModelMetadata

The model metadata.

context
ControllerContext ControllerContext ControllerContext

The controller context.

Returns

The client validation rules for this validator.

Applies to