AttributeAdapterBase<TAttribute>(TAttribute, IStringLocalizer) Конструктор

Определение

Создает новый объект 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)

Параметры

attribute
TAttribute

Объект , ValidationAttribute который упаковывается в оболочку.

stringLocalizer
IStringLocalizer

Объект , используемый IStringLocalizer при создании ошибок.

Применяется к