AttributeAdapterBase<TAttribute> AttributeAdapterBase<TAttribute> AttributeAdapterBase<TAttribute> Class

Definition

An abstract subclass of ValidationAttributeAdapter<TAttribute> which wraps up all the required interfaces for the adapters.

public abstract class AttributeAdapterBase<TAttribute> : Microsoft.AspNetCore.Mvc.DataAnnotations.Internal.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

Type Parameters

TAttribute

The type of ValidationAttribute which is being wrapped.

Inheritance
AttributeAdapterBase<TAttribute>AttributeAdapterBase<TAttribute>AttributeAdapterBase<TAttribute>
Implements

Constructors

AttributeAdapterBase<TAttribute>(TAttribute, IStringLocalizer) AttributeAdapterBase<TAttribute>(TAttribute, IStringLocalizer) AttributeAdapterBase<TAttribute>(TAttribute, IStringLocalizer)

Instantiates a new AttributeAdapterBase<TAttribute>.

Methods

AddValidation(ClientModelValidationContext) AddValidation(ClientModelValidationContext) AddValidation(ClientModelValidationContext) Inherited from ValidationAttributeAdapter<TAttribute>
GetErrorMessage(ModelMetadata, Object[]) GetErrorMessage(ModelMetadata, Object[]) GetErrorMessage(ModelMetadata, Object[])

Gets the error message formatted using the Attribute.

(Inherited from ValidationAttributeAdapter<TAttribute>)
GetErrorMessage(ModelValidationContextBase) GetErrorMessage(ModelValidationContextBase) GetErrorMessage(ModelValidationContextBase)

Properties

Attribute Attribute Attribute

Gets the TAttribute instance.

(Inherited from ValidationAttributeAdapter<TAttribute>)

Applies to