Checks whether the number of elements in the given value, is more than the specified
numberOfElements argument. An exception is thrown otherwise. When the value is
a null reference, it is considered to have 0 elements.
Namespace:
CuttingEdge.Conditions
Assembly:
CuttingEdge.Conditions (in CuttingEdge.Conditions.dll)
Syntax
JavaScript |
---|
JavaScript does not support generic types or methods. |
Type Parameters
- TCollection
- The type of the value to check.
Return Value
The specified
validator instance.
Exceptions
Exception | Condition |
---|
System..::.ArgumentException | Thrown when the Value of the specified validator contains less or the same amount of elements as specified by the numberOfElements argument, while the specified validator is created using the Requires extension method. |
System..::.ArgumentNullException | Thrown when the Value of the specified validator is a null reference and the numberOfElements is greater or equal to 0, while the specified validator is created using the Requires extension method. |
CuttingEdge.Conditions..::.PostconditionException | Thrown when the Value of the specified validator contains less or the same amount of elements as specified by the numberOfElements argument, while the specified validator is created using the Ensures extension method. |
See Also