ModelMetadata.GetValidators Method
Gets a list of validators for the model.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
public virtual IEnumerable<ModelValidator> GetValidators( ControllerContext context )
Parameters
- context
- Type: System.Web.Mvc.ControllerContext
The controller context.
Return Value
Type: System.Collections.Generic.IEnumerable<ModelValidator>A list of validators for the model.
Show: