RangeAttributeAdapter Class¶
Inheritance Hierarchy¶
System.Object
Microsoft.AspNet.Mvc.ModelBinding.Validation.DataAnnotationsClientModelValidator{System.ComponentModel.DataAnnotations.RangeAttribute}
Microsoft.AspNet.Mvc.ModelBinding.Validation.RangeAttributeAdapter
Syntax¶
public class RangeAttributeAdapter : DataAnnotationsClientModelValidator<RangeAttribute>, IClientModelValidator
Constructors¶
-
RangeAttributeAdapter
(System.ComponentModel.DataAnnotations.RangeAttribute)¶ Arguments: - attribute (System.ComponentModel.DataAnnotations.RangeAttribute) –
public RangeAttributeAdapter(RangeAttribute attribute)
-
Methods¶
-
GetClientValidationRules
(Microsoft.AspNet.Mvc.ModelBinding.Validation.ClientModelValidationContext)¶ Arguments: Return type: System.Collections.Generic.IEnumerable{Microsoft.AspNet.Mvc.ModelBinding.Validation.ModelClientValidationRule}
public override IEnumerable<ModelClientValidationRule> GetClientValidationRules(ClientModelValidationContext context)
-