EmailAttachmentCollection

Inheritance: java.lang.Object, com.groupdocs.watermark.common.ReadOnlyListBase, com.groupdocs.watermark.common.RemoveOnlyListBase

public class EmailAttachmentCollection extends RemoveOnlyListBase<EmailAttachment>

Represents a collection of attachments in an email message.

This collection contains the items of [EmailAttachment](../../com.groupdocs.watermark.contents/emailattachment) type.

Methods

Method Description
add(byte[] fileContent, String name) Adds an attachment to the [EmailContent](../../com.groupdocs.watermark.contents/emailcontent).
removeFromDocument(EmailAttachment item)

add(byte[] fileContent, String name)

public final void add(byte[] fileContent, String name)

Adds an attachment to the [EmailContent](../../com.groupdocs.watermark.contents/emailcontent).

Parameters:

Parameter Type Description
fileContent byte[] The content of the file to be attached.
name java.lang.String The name of the file.

removeFromDocument(EmailAttachment item)

public void removeFromDocument(EmailAttachment item)

Parameters:

Parameter Type Description
item EmailAttachment