Partager via


AttributeAdapterBase<TAttribute>(TAttribute, IStringLocalizer) Constructeur

Définition

Instancie un nouveau AttributeAdapterBase<TAttribute>.

public:
 AttributeAdapterBase(TAttribute attribute, Microsoft::Extensions::Localization::IStringLocalizer ^ stringLocalizer);
public AttributeAdapterBase (TAttribute attribute, Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer);
public AttributeAdapterBase (TAttribute attribute, Microsoft.Extensions.Localization.IStringLocalizer? stringLocalizer);
new Microsoft.AspNetCore.Mvc.DataAnnotations.AttributeAdapterBase<'Attribute (requires 'Attribute :> System.ComponentModel.DataAnnotations.ValidationAttribute)> : 'Attribute * Microsoft.Extensions.Localization.IStringLocalizer -> Microsoft.AspNetCore.Mvc.DataAnnotations.AttributeAdapterBase<'Attribute (requires 'Attribute :> System.ComponentModel.DataAnnotations.ValidationAttribute)>
Public Sub New (attribute As TAttribute, stringLocalizer As IStringLocalizer)

Paramètres

attribute
TAttribute

Encapsulé ValidationAttribute .

stringLocalizer
IStringLocalizer

à utiliser dans la IStringLocalizer génération d’erreurs.

S’applique à