IAttributeAdapter 介面

定義

介面,讓配接器將其相關值提供給錯誤訊息。

public interface class IAttributeAdapter : Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IClientModelValidator
public interface IAttributeAdapter : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidator
type IAttributeAdapter = interface
    interface IClientModelValidator
Public Interface IAttributeAdapter
Implements IClientModelValidator
衍生
實作

方法

AddValidation(ClientModelValidationContext)

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

(繼承來源 IClientModelValidator)
GetErrorMessage(ModelValidationContextBase)

取得錯誤訊息。

適用於