StringLengthAttributeAdapter Class

Inheritance Hierarchy

Syntax

public class StringLengthAttributeAdapter : DataAnnotationsClientModelValidator<StringLengthAttribute>, IClientModelValidator

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.Validation.StringLengthAttributeAdapter

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)