RangeAttributeAdapter Class¶
- Namespace
Microsoft.AspNetCore.Mvc.DataAnnotations.Internal- Assemblies
- Microsoft.AspNetCore.Mvc.DataAnnotations
Inheritance Hierarchy¶
System.ObjectMicrosoft.AspNetCore.Mvc.DataAnnotations.Internal.ValidationAttributeAdapter{System.ComponentModel.DataAnnotations.RangeAttribute}Microsoft.AspNetCore.Mvc.DataAnnotations.Internal.AttributeAdapterBase{System.ComponentModel.DataAnnotations.RangeAttribute}Microsoft.AspNetCore.Mvc.DataAnnotations.Internal.RangeAttributeAdapter
Syntax¶
public class RangeAttributeAdapter : AttributeAdapterBase<RangeAttribute>, IAttributeAdapter, IClientModelValidator
-
class
Microsoft.AspNetCore.Mvc.DataAnnotations.Internal.RangeAttributeAdapter
Constructors¶
-
RangeAttributeAdapter(System.ComponentModel.DataAnnotations.RangeAttribute, Microsoft.Extensions.Localization.IStringLocalizer)¶ public RangeAttributeAdapter(RangeAttribute attribute, IStringLocalizer stringLocalizer)
-
Methods¶
-
AddValidation(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext)¶ public override void AddValidation(ClientModelValidationContext context)
-
GetErrorMessage(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase)¶ Return type: System.String public override string GetErrorMessage(ModelValidationContextBase validationContext)
-