ModelValidatorProviderCollection.GetValidators Method
Visual Studio 2010
Returns the list of model validators.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
public 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>The list of model validators.
Community Additions
ADD
Show: