Simple Mail and Post Office Protocol for .Net (SmtPop)

MimeAttachmentList.Add Method 

Adds a MimeAttachment to the end of the MimeAttachmentList.

public virtual int Add(
   MimeAttachment value
);

Parameters

value
The MimeAttachment object to be added to the end of the MimeAttachmentList. This argument can be a null reference.

Return Value

The MimeAttachmentList index at which the value has been added.

Implements

IMimeAttachmentList.Add

Remarks

Please refer to Add for details.

Exceptions

Exception Type Condition
NotSupportedException

The MimeAttachmentList is read-only.

-or-

The MimeAttachmentList has a fixed size.

-or-

The MimeAttachmentList already contains the specified value, and the MimeAttachmentList ensures that all elements are unique.

See Also

MimeAttachmentList Class | SmtPop Namespace