ValidationAttributeAdapter<TAttribute> Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a new instance of 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)
Parameters
- attribute
- TAttribute
The TAttribute
instance to validate.
- stringLocalizer
- IStringLocalizer
The IStringLocalizer.