AttributeAdapterBase<TAttribute>(TAttribute, IStringLocalizer) AttributeAdapterBase<TAttribute>(TAttribute, IStringLocalizer) AttributeAdapterBase<TAttribute>(TAttribute, IStringLocalizer) Constructor

Definition

Instantiates a new AttributeAdapterBase<TAttribute>.

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)

Parameters

attribute

The ValidationAttribute being wrapped.

stringLocalizer
IStringLocalizer IStringLocalizer IStringLocalizer

The IStringLocalizer to be used in error generation.

Applies to