다음을 통해 공유


ValidationAttributeAdapter<TAttribute> 생성자

정의

ValidationAttributeAdapter<TAttribute>의 새 인스턴스를 만듭니다.

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

매개 변수

attribute
TAttribute

TAttribute 유효성을 검사할 instance.

적용 대상