DataAnnotationsModelValidatorProvider.GetValidators Method (ModelMetadata, ControllerContext, IEnumerable(Of Attribute))

Visual Studio 2010

Gets a list of validators.

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

'Declaration
Protected Overrides Function GetValidators ( _
	metadata As ModelMetadata, _
	context As ControllerContext, _
	attributes As IEnumerable(Of Attribute) _
) As IEnumerable(Of ModelValidator)

Parameters

metadata
Type: System.Web.Mvc.ModelMetadata
The metadata.
context
Type: System.Web.Mvc.ControllerContext
The context.
attributes
Type: System.Collections.Generic.IEnumerable(Of Attribute)
The list of validation attributes.

Return Value

Type: System.Collections.Generic.IEnumerable(Of ModelValidator)
A list of validators.

Community Additions

ADD
Show: