MaxLengthAttributeAdapter Class¶
Inheritance Hierarchy¶
System.Object
Microsoft.AspNet.Mvc.ModelBinding.Validation.DataAnnotationsClientModelValidator{System.ComponentModel.DataAnnotations.MaxLengthAttribute}
Microsoft.AspNet.Mvc.ModelBinding.Validation.MaxLengthAttributeAdapter
Syntax¶
public class MaxLengthAttributeAdapter : DataAnnotationsClientModelValidator<MaxLengthAttribute>, IClientModelValidator
Constructors¶
-
MaxLengthAttributeAdapter
(System.ComponentModel.DataAnnotations.MaxLengthAttribute)¶ Arguments: - attribute (System.ComponentModel.DataAnnotations.MaxLengthAttribute) –
public MaxLengthAttributeAdapter(MaxLengthAttribute 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)
-