AttributeAdapterBase<TAttribute> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An abstract subclass of ValidationAttributeAdapter<TAttribute> which wraps up all the required interfaces for the adapters.
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
- TAttribute
The type of ValidationAttribute which is being wrapped.
- Inheritance
- Derived
- Implements
Attribute |
Instantiates a new AttributeAdapterBase<TAttribute>. |
Attribute |
Gets the |
Add |
Called to add client-side model validation. (Inherited from ValidationAttributeAdapter<TAttribute>) |
Get |
Gets the error message formatted using the Attribute. (Inherited from ValidationAttributeAdapter<TAttribute>) |
Get |
Gets the error message. |