AssociatedValidatorProvider.GetValidators Method (ModelMetadata, ModelBindingExecutionContext, IEnumerable<Attribute>)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

When implemented in a derived type, gets the validators for the model, using the specified metadata, execution context, and attributes.

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

protected abstract IEnumerable<ModelValidator> GetValidators(
	ModelMetadata metadata,
	ModelBindingExecutionContext context,
	IEnumerable<Attribute> attributes
)

Parameters

metadata
Type: System.Web.ModelBinding.ModelMetadata

The metadata.

context
Type: System.Web.ModelBinding.ModelBindingExecutionContext

The execution context.

attributes
Type: System.Collections.Generic.IEnumerable<Attribute>

The attributes.

Return Value

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

The validators.

.NET Framework
Available since 4.5
Return to top
Show: