Export (0) Print
Expand All

DataErrorInfoModelValidatorProvider.GetValidators Method

Gets a list of error-information model validators.

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

public override IEnumerable<ModelValidator> GetValidators(
	ModelMetadata metadata,
	ControllerContext 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<ModelValidator>
A list of error-information model validators.
Show:
© 2015 Microsoft