DataErrorInfoModelValidatorProvider.GetValidators Method

Visual Studio 2010

Gets a list of error-information model validators.

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

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

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 ModelValidator)
A list of error-information model validators.

Community Additions

ADD
Show: