Freigeben über


ValidationAttributeAdapter<TAttribute> Konstruktor

Definition

Erstelle eine neue ValidationAttributeAdapter<TAttribute>-Instanz.

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)

Parameter

attribute
TAttribute

Die TAttribute zu überprüfende instance.

stringLocalizer
IStringLocalizer

Die IStringLocalizer.

Gilt für: