AttributeAdapterBase<TAttribute> Clase

Definición

Una subclase abstracta de ValidationAttributeAdapter<TAttribute> la que encapsula todas las interfaces necesarias para los adaptadores.

generic <typename TAttribute>
 where TAttribute : ValidationAttributepublic ref class AttributeAdapterBase abstract : Microsoft::AspNetCore::Mvc::DataAnnotations::ValidationAttributeAdapter<TAttribute>, Microsoft::AspNetCore::Mvc::DataAnnotations::IAttributeAdapter, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IClientModelValidator
public abstract class AttributeAdapterBase<TAttribute> : Microsoft.AspNetCore.Mvc.DataAnnotations.ValidationAttributeAdapter<TAttribute>, Microsoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapter, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidator where TAttribute : ValidationAttribute
type AttributeAdapterBase<'Attribute (requires 'Attribute :> ValidationAttribute)> = class
    inherit ValidationAttributeAdapter<'Attribute (requires 'Attribute :> ValidationAttribute)>
    interface IAttributeAdapter
    interface IClientModelValidator
Public MustInherit Class AttributeAdapterBase(Of TAttribute)
Inherits ValidationAttributeAdapter(Of TAttribute)
Implements IAttributeAdapter, IClientModelValidator

Parámetros de tipo

TAttribute

Tipo de ValidationAttribute que se va a encapsular.

Herencia
AttributeAdapterBase<TAttribute>
Derivado
Implementaciones

Constructores

AttributeAdapterBase<TAttribute>(TAttribute, IStringLocalizer)

Crea una instancia de un nuevo objeto AttributeAdapterBase<TAttribute>.

Propiedades

Attribute

Obtiene la instancia de TAttribute.

(Heredado de ValidationAttributeAdapter<TAttribute>)

Métodos

AddValidation(ClientModelValidationContext)

Se llama para agregar validación de modelos del lado cliente.

(Heredado de ValidationAttributeAdapter<TAttribute>)
GetErrorMessage(ModelMetadata, Object[])

Obtiene el mensaje de error con Attributeel formato .

(Heredado de ValidationAttributeAdapter<TAttribute>)
GetErrorMessage(ModelValidationContextBase)

Obtiene el mensaje de error.

Se aplica a