ValidateItemsAttribute class

Used to validate a collection property whose items have their own properties with data annotations.

[AttributeUsage(AttributeTargets.Property)]
public sealed class ValidateItemsAttribute : ValidationAttribute

Public Members

name description
ValidateItemsAttribute() The default constructor.
AllowNullItems { get; set; } True if null items are allowed. Defaults to false.

Protected Members

name description
override IsValid(…)  

See Also