AssociatedValidatorProvider.GetValidators Method (ModelMetadata, ControllerContext)
Visual Studio 2010
Gets the validators for the model using the metadata and controller context.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
public override sealed IEnumerable<ModelValidator> GetValidators( ModelMetadata metadata, ControllerContext context )
Parameters
- metadata
- Type: System.Web.Mvc.ModelMetadata
The metadata.
- context
- Type: System.Web.Mvc.ControllerContext
The controller context.
Return Value
Type: System.Collections.Generic.IEnumerable<ModelValidator>The validators for the model.
Community Additions
ADD
Show: