MaxValueAttribute Class

MaxValueAttribute Class

Specifies the maximum value 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 larger value than the specified maximum.

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

Inheritance  Attribute MaxValueAttribute

Implements  IPropertyModelAttribute

Constructors

Name Description
MaxValueAttribute(Object)

Properties

Name Description
ValidationMessage

Methods

Name Description
Apply(PropertyDefinition)