Sets the minimum 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 fewer than the specified minimum.

[AttributeUsage]
public sealed class MinCountAttribute: ICollectionValidationAttribute
Inheritance:
ObjectValidationAttributeMinCountAttribute
Implements:
ICollectionValidationAttribute

Constructors

MinCountAttribute(int)

Properties

MinimumCount

Methods

IsValid(object)
FormatErrorMessage(string)