CollectionItemsValidationResult Class
The result returned by ValidateCollectionItemsAttribute when at least one item of the collection is invalid.
public sealed class CollectionItemsValidationResult : ValidationResultRemarks
ValidationResult.ErrorMessage and ValidationResult.MemberNames describe the first error. CollectionItemsValidationResult.Errors holds every error of every item.
- Inheritance
ValidationResultCollectionItemsValidationResult
Properties
| Name | Description |
|---|---|
| Errors | Gets the errors of all the invalid items. Their member names are prefixed with the name of the collection and the index of the item, such as Items[1].Name. |
Gets the errors of all the invalid items. Their member names are prefixed with the name of the collection and the index of the item, such as Items[1].Name.
public IReadOnlyList<ValidationResult> Errors { get; }