IClientValidatable.GetClientValidationRules Method (ModelMetadata, ControllerContext)

 

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

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

IEnumerable<ModelClientValidationRule> GetClientValidationRules(
	ModelMetadata metadata,
	ControllerContext context
)

Parameters

metadata
Type: System.Web.Mvc.ModelMetadata

The model metadata.

context
Type: System.Web.Mvc.ControllerContext

The controller context.

Return Value

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

The client validation rules for this validator.

Return to top
Show: