ModelValidator.GetModelValidator Method (ModelMetadata, ModelBindingExecutionContext)

.NET Framework (current version)
 

Returns a composite model validator for the model.

Namespace:   System.Web.ModelBinding
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.ModelValidator

The composite model validator for the model.

.NET Framework
Available since 4.5
Return to top
Show: