ValidateWithIndex method
Implementation
@override
void ValidateWithIndex(int attachmentIndex) {
if (StringUtils.IsNullOrEmpty(this.Name)) {
throw new ServiceValidationException(
"ItemAttachmentMustBeNamed($attachmentIndex)");
}
// Recurse through any items attached to item attachment.
this.Item!.Attachments.Validate();
}