다음을 통해 공유


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 오류 생성에 사용할 입니다.

적용 대상