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

Gets the validators for the model using the metadata, the validator providers, and a list of attributes.

Namespace:  System.Web.Http.Validation.Providers
Assembly:  System.Web.Http (in System.Web.Http.dll)

protected abstract IEnumerable<ModelValidator> GetValidators(
	ModelMetadata metadata,
	IEnumerable<ModelValidatorProvider> validatorProviders,
	IEnumerable<Attribute> attributes
)

Parameters

metadata
Type: System.Web.Http.Metadata.ModelMetadata

The metadata.

validatorProviders
Type: System.Collections.Generic.IEnumerable<ModelValidatorProvider>

An enumeration of validator providers.

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

The list of attributes.

Return Value

Type: System.Collections.Generic.IEnumerable<ModelValidator>
The validators for the model.
Show: