AssociatedValidatorProvider.GetValidators Method (ModelMetadata, ModelBindingExecutionContext, IEnumerable(Of Attribute))
.NET Framework (current version)
When implemented in a derived type, gets the validators for the model, using the specified metadata, execution context, and attributes.
Assembly: System.Web (in System.Web.dll)
Protected MustOverride Function GetValidators ( metadata As ModelMetadata, context As ModelBindingExecutionContext, attributes As IEnumerable(Of Attribute) ) As IEnumerable(Of ModelValidator)
Parameters
- metadata
-
Type:
System.Web.ModelBinding.ModelMetadata
The metadata.
- context
-
Type:
System.Web.ModelBinding.ModelBindingExecutionContext
The execution context.
- attributes
-
Type:
System.Collections.Generic.IEnumerable(Of Attribute)
The attributes.
.NET Framework
Available since 4.5
Available since 4.5
Show: