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.IAttributeAdapterfor the givenSystem.ComponentModel.DataAnnotations.ValidationAttribute.Arguments: - attribute (System.ComponentModel.DataAnnotations.ValidationAttribute) – The
System.ComponentModel.DataAnnotations.ValidationAttributeto create anMicrosoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapterfor. - stringLocalizer (Microsoft.Extensions.Localization.IStringLocalizer) – The
Microsoft.Extensions.Localization.IStringLocalizerwhich will be used to create messages.
Return type: Returns: An
Microsoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapterfor the given <em>attribute</em>.IAttributeAdapter GetAttributeAdapter(ValidationAttribute attribute, IStringLocalizer stringLocalizer)
- attribute (System.ComponentModel.DataAnnotations.ValidationAttribute) – The
-