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 given System.ComponentModel.DataAnnotations.ValidationAttribute.

Arguments:
Return type:

Microsoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapter

Returns:

An Microsoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapter for the given <em>attribute</em>.

IAttributeAdapter GetAttributeAdapter(ValidationAttribute attribute, IStringLocalizer stringLocalizer)