MaxLengthAttribute Class

MaxLengthAttribute Class

Specifies the maximum length that the property value will be validated against. This is only enforced in the back office user interface; from code it is possible to set a value with a longer length than the specified maximum.

[AttributeUsage(AttributeTargets.Property)]
public sealed class MaxLengthAttribute: Attribute, IPropertyModelAttribute

Inheritance  Attribute MaxLengthAttribute

Implements  IPropertyModelAttribute

Constructors

Name Description
MaxLengthAttribute(int)

Properties

Name Description
ValidationMessage

Methods

Name Description
Apply(PropertyDefinition)