ModelValidator.GetModelValidator(ModelMetadata, ControllerContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a composite model validator for the model.
public static System.Web.Mvc.ModelValidator GetModelValidator (System.Web.Mvc.ModelMetadata metadata, System.Web.Mvc.ControllerContext context);
static member GetModelValidator : System.Web.Mvc.ModelMetadata * System.Web.Mvc.ControllerContext -> System.Web.Mvc.ModelValidator
Public Shared Function GetModelValidator (metadata As ModelMetadata, context As ControllerContext) As ModelValidator
Parameters
- metadata
- ModelMetadata
The metadata.
- context
- ControllerContext
The controller context.
Returns
A composite model validator for the model.