ModelMetadata.GetValidators Method (ModelBindingExecutionContext)
.NET Framework (current version)
Returns a collection of validators that apply to the model.
Assembly: System.Web (in System.Web.dll)
Public Overridable Function GetValidators ( context As ModelBindingExecutionContext ) As IEnumerable(Of ModelValidator)
Parameters
- context
-
Type:
System.Web.ModelBinding.ModelBindingExecutionContext
The model binding execution context.
Return Value
Type: System.Collections.Generic.IEnumerable(Of ModelValidator)A collection of validators.
.NET Framework
Available since 4.5
Available since 4.5
Show: