Class CollectionNotEmptyAttribute
- Namespace
- Acuit.Pinpoint.Common.Validation
- Assembly
- Acuit.Pinpoint.Common.dll
Specify that a collection member must not be empty.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class CollectionNotEmptyAttribute : ValidationAttribute, _Attribute
- Inheritance
-
CollectionNotEmptyAttribute
- Implements
- Inherited Members
Constructors
CollectionNotEmptyAttribute()
Initializes a new instance of the WildcardExpressionAttribute class.
public CollectionNotEmptyAttribute()
Methods
IsValid(object)
Checks whether the specified object is valid.
public override bool IsValid(object value)
Parameters
value
objectThe value of the object to validate.