IAttributeAdapter Interface¶
Interface so that adapters provide their relevent values to error messages.
- Namespace
Microsoft.AspNetCore.Mvc.DataAnnotations
- Assemblies
- Microsoft.AspNetCore.Mvc.DataAnnotations
Syntax¶
public interface IAttributeAdapter : IClientModelValidator
-
interface
Microsoft.AspNetCore.Mvc.DataAnnotations.
IAttributeAdapter
Methods¶
-
GetErrorMessage
(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase)¶ Gets the error message.
Arguments: validationContext (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase) – The context to use in message creation. Return type: System.String Returns: The localized error message. string GetErrorMessage(ModelValidationContextBase validationContext)
-