IValidationAttributeAdapterProvider Interface¶
Provider for supplying Microsoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapter
‘s.
- Namespace
Microsoft.AspNetCore.Mvc.DataAnnotations
- Assemblies
- Microsoft.AspNetCore.Mvc.DataAnnotations
Syntax¶
public interface IValidationAttributeAdapterProvider
-
interface
Microsoft.AspNetCore.Mvc.DataAnnotations.
IValidationAttributeAdapterProvider
Methods¶
-
GetAttributeAdapter
(System.ComponentModel.DataAnnotations.ValidationAttribute, Microsoft.Extensions.Localization.IStringLocalizer)¶ Returns the
Microsoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapter
for the givenSystem.ComponentModel.DataAnnotations.ValidationAttribute
.Arguments: - attribute (System.ComponentModel.DataAnnotations.ValidationAttribute) – The
System.ComponentModel.DataAnnotations.ValidationAttribute
to create anMicrosoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapter
for. - stringLocalizer (Microsoft.Extensions.Localization.IStringLocalizer) – The
Microsoft.Extensions.Localization.IStringLocalizer
which will be used to create messages.
Return type: Returns: An
Microsoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapter
for the given <em>attribute</em>.IAttributeAdapter GetAttributeAdapter(ValidationAttribute attribute, IStringLocalizer stringLocalizer)
- attribute (System.ComponentModel.DataAnnotations.ValidationAttribute) – The
-