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

MimeAttachmentList.CopyTo Method (MimeAttachment[])

Copies the entire MimeAttachmentList to a one-dimensional Array of MimeAttachment elements, starting at the beginning of the target array.

public virtual void CopyTo(
   MimeAttachment[] array
);

Parameters

array
The one-dimensional Array that is the destination of the MimeAttachment elements copied from the MimeAttachmentList. The Array must have zero-based indexing.

Remarks

Please refer to CopyTo for details.

Exceptions

Exception Type Condition
ArgumentNullException array is a null reference.
ArgumentException The number of elements in the source MimeAttachmentList is greater than the available space in the destination array.

See Also

MimeAttachmentList Class | SmtPop Namespace | MimeAttachmentList.CopyTo Overload List