ModelValidator.GetModelValidator Method (ModelMetadata, ModelBindingExecutionContext)
.NET Framework (current version)
Returns a composite model validator for the model.
Assembly: System.Web (in System.Web.dll)
static member GetModelValidator : metadata:ModelMetadata * context:ModelBindingExecutionContext -> ModelValidator
Parameters
- metadata
-
Type:
System.Web.ModelBinding.ModelMetadata
The metadata.
- context
-
Type:
System.Web.ModelBinding.ModelBindingExecutionContext
The execution context.
Return Value
Type: System.Web.ModelBinding.ModelValidatorThe composite model validator for the model.
.NET Framework
Available since 4.5
Available since 4.5
Show: