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

IMimeAttachmentList.Insert Method 

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

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 IMimeAttachmentList. This argument can be a null reference.

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 IMimeAttachmentList is read-only.

-or-

The IMimeAttachmentList has a fixed size.

See Also

IMimeAttachmentList Interface | SmtPop Namespace