ModelValidatorProviderCollection.GetValidators Method

Definition

Returns the collection of validators.

C#
public System.Collections.Generic.IEnumerable<System.Web.ModelBinding.ModelValidator> GetValidators(System.Web.ModelBinding.ModelMetadata metadata, System.Web.ModelBinding.ModelBindingExecutionContext context);

Parameters

metadata
ModelMetadata

The metadata.

context
ModelBindingExecutionContext

The execution context.

Returns

The validators.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1