Export (0) Print
Expand All

ModelValidatorProvider.GetValidators Method

Gets a list of validators.

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

public abstract function GetValidators(
	metadata : ModelMetadata, 
	context : ControllerContext
) : IEnumerable<ModelValidator>

Parameters

metadata
Type: System.Web.Mvc.ModelMetadata

The metadata.

context
Type: System.Web.Mvc.ControllerContext

The context.

Return Value

Type: System.Collections.Generic.IEnumerable(ModelValidator)
A list of validators.
Show:
© 2015 Microsoft