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