MinLengthAttribute Class

MinLengthAttribute Class

Specifies the minimum 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 shorter length than the specified minimum.

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

Inheritance  Attribute MinLengthAttribute

Implements  IPropertyModelAttribute

Constructors

Name Description
MinLengthAttribute(int)

Properties

Name Description
ValidationMessage

Methods

Name Description
Apply(PropertyDefinition)