Export (0) Print
Expand All

ModelValidatorProviderCollection.GetValidators Method

Returns the list of model validators.

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

member GetValidators : 
        metadata:ModelMetadata * 
        context:ControllerContext -> IEnumerable<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(ModelValidator)
The list of model validators.
Show:
© 2015 Microsoft