Aracılığıyla paylaş


AttributeAdapterBase<TAttribute>(TAttribute, IStringLocalizer) Oluşturucu

Tanım

Yeni AttributeAdapterBase<TAttribute>bir örneği oluşturur.

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)

Parametreler

attribute
TAttribute

Sarmalanan ValidationAttribute .

stringLocalizer
IStringLocalizer

IStringLocalizer hata oluşturmada kullanılacak.

Şunlara uygulanır