Compartir a través de


ValidationAttributeAdapter<TAttribute> Constructor

Definición

Cree una nueva instancia de 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)

Parámetros

attribute
TAttribute

Instancia TAttribute que se va a validar.

Se aplica a