Share via


IModelValidatorProvider.CreateValidators Method

Definition

Creates the validators for ModelMetadata.

public:
 void CreateValidators(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ModelValidatorProviderContext ^ context);
public void CreateValidators (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidatorProviderContext context);
abstract member CreateValidators : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidatorProviderContext -> unit
Public Sub CreateValidators (context As ModelValidatorProviderContext)

Parameters

Remarks

Implementations should add the IModelValidator instances to the appropriate ValidatorItem instance which should be added to Results.

Applies to