IModelValidatorProvider.CreateValidators Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.