Attachment CollectionInsert Method
Insert an attachment at the given index.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void Insert(
int index,
MimeEntity attachment
)Parameters
- index Int32
- The index to insert the attachment.
- attachment MimeEntity
- The attachment.
Implements
IListTInsert(Int32, T)Remarks
Inserts the attachment at the specified index.
Exceptions
| ArgumentNullException | attachment is . |
| ArgumentOutOfRangeException | index is out of range. |