FieldValidationMetadata.ValidationRules Property

Gets the client validation rules.

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

'Declaration
Public ReadOnly Property ValidationRules As ICollection(Of ModelClientValidationRule)
	Get
'Usage
Dim instance As FieldValidationMetadata 
Dim value As ICollection(Of ModelClientValidationRule)

value = instance.ValidationRules

Property Value

Type: System.Collections.Generic.ICollection(Of ModelClientValidationRule)
The client validation rules.

This method is called by the ValidationMessage method when client validation is enabled. You typically do not have to use this property directly.

Show: