MaxLengthAttributeAdapter Class

Inheritance Hierarchy

Syntax

public class MaxLengthAttributeAdapter : DataAnnotationsClientModelValidator<MaxLengthAttribute>, IClientModelValidator

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.Validation.MaxLengthAttributeAdapter

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)