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

MimeAttachmentList.Insert Method 

Inserts a MimeAttachment element into the MimeAttachmentList at the specified index.

public virtual void Insert(
   int index,
   MimeAttachment value
);

Parameters

index
The zero-based index at which value should be inserted.
value
The MimeAttachment object to insert into the MimeAttachmentList. This argument can be a null reference.

Implements

IMimeAttachmentList.Insert

Remarks

Please refer to Insert for details.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is greater than Count.

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