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