MinCountAttribute Class

MinCountAttribute Class

Sets the maximum number of items allowed for this property. Only applies to collection properties. This is only enforced in the back office user interface; from code it is possible to add more items than the specified maximum.

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

Inheritance  Attribute MinCountAttribute

Implements  IPropertyModelAttribute

Constructors

Name Description
MinCountAttribute(int)

Properties

Name Description
ValidationMessage

Methods

Name Description
Apply(PropertyDefinition)