Udostępnij za pośrednictwem


ValidationAttributeAdapter<TAttribute> Konstruktor

Definicja

Utwórz nowe wystąpienie klasy 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)

Parametry

attribute
TAttribute

Wystąpienie do zweryfikowania TAttribute .

stringLocalizer
IStringLocalizer

Element IStringLocalizer.

Dotyczy