AttributeAdapterBase<TAttribute>(TAttribute, IStringLocalizer) Construtor

Definição

Cria a instância de um novo 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)

Parâmetros

attribute
TAttribute

O ValidationAttribute que está sendo encapsulado.

stringLocalizer
IStringLocalizer

O IStringLocalizer a ser usado na geração de erros.

Aplica-se a