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

The model metadata.

context
ControllerContext

The controller context.

Returns

IEnumerable<ModelClientValidationRule>

The client validation rules for this validator.

Applies to