GetValidators Method
Collapse the table of content
Expand the table of content

ModelValidatorProvider.GetValidators Method (ModelMetadata, ControllerContext)

 

Gets a list of validators.

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

No code example is currently available or this language may not be supported.

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.

Return to top
Show:
© 2016 Microsoft