Export (0) Print
Expand All

IClientValidatable.GetClientValidationRules Method

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)

'Declaration
Function GetClientValidationRules ( _
	metadata As ModelMetadata, _
	context As ControllerContext _
) As IEnumerable(Of ModelClientValidationRule)
'Usage
Dim instance As IClientValidatable
Dim metadata As ModelMetadata
Dim context As ControllerContext
Dim returnValue As IEnumerable(Of ModelClientValidationRule)

returnValue = instance.GetClientValidationRules(metadata, _
	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(Of ModelClientValidationRule)
The client validation rules for this validator.
Show:
© 2014 Microsoft