ModelMetadata.GetValidators Method (ModelBindingExecutionContext)

.NET Framework (current version)
 

Returns a collection of validators that apply to the model.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

abstract GetValidators : 
        context:ModelBindingExecutionContext -> IEnumerable<ModelValidator>
override GetValidators : 
        context:ModelBindingExecutionContext -> IEnumerable<ModelValidator>

Parameters

context
Type: System.Web.ModelBinding.ModelBindingExecutionContext

The model binding execution context.

Return Value

Type: System.Collections.Generic.IEnumerable<ModelValidator>

A collection of validators.

.NET Framework
Available since 4.5
Return to top
Show: