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)

Function GetClientValidationRules (
	metadata As ModelMetadata,
	context As ControllerContext
) As IEnumerable(Of ModelClientValidationRule)

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(Of ModelClientValidationRule)

The client validation rules for this validator.

Return to top
Show: