共用方式為


ValidationAttributeAdapter<TAttribute>.AddValidation 方法

定義

呼叫 以新增用戶端模型驗證。

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

參數

實作

適用於