MinLengthAttributeAdapter Class

Inheritance Hierarchy

Syntax

public class MinLengthAttributeAdapter : DataAnnotationsClientModelValidator<MinLengthAttribute>, IClientModelValidator

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.Validation.MinLengthAttributeAdapter

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)