IModelValidatorProvider.CreateValidators 方法

定义

为 创建验证程序 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)

参数

注解

实现应将IModelValidator实例添加到应添加到 Results的相应ValidatorItem实例。

适用于