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

MimeAttachmentList.AddRange Method (MimeAttachment[])

Adds the elements of a MimeAttachment array to the end of the MimeAttachmentList.

public virtual void AddRange(
   MimeAttachment[] array
);

Parameters

array
An Array of MimeAttachment elements that should be added to the end of the MimeAttachmentList.

Remarks

Please refer to AddRange for details.

Exceptions

Exception Type Condition
ArgumentNullException array is a null reference.
NotSupportedException

The MimeAttachmentList is read-only.

-or-

The MimeAttachmentList has a fixed size.

-or-

The MimeAttachmentList already contains one or more elements in the specified array, and the MimeAttachmentList ensures that all elements are unique.

See Also

MimeAttachmentList Class | SmtPop Namespace | MimeAttachmentList.AddRange Overload List