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

MimeAttachmentList.AddRange Method (MimeAttachmentList)

Adds the elements of another collection to the end of the MimeAttachmentList.

public virtual void AddRange(
   MimeAttachmentList collection
);

Parameters

collection
The MimeAttachmentList whose elements should be added to the end of the current collection.

Remarks

Please refer to AddRange for details.

Exceptions

Exception Type Condition
ArgumentNullException collection 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 collection, and the MimeAttachmentList ensures that all elements are unique.

See Also

MimeAttachmentList Class | SmtPop Namespace | MimeAttachmentList.AddRange Overload List