MailKit Documentation
MailKit Documentation
API Reference
MimeKit
AttachmentCollection Class
AttachmentCollection Methods
Add Method
AddAsync Method
Clear Method
Contains Method
CopyTo Method
GetEnumerator Method
IndexOf Method
Insert Method
Remove Method
RemoveAt Method
Attachment
Collection
Insert Method
Insert an attachment at the given index.
Namespace:
MimeKit
Assembly:
MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
Copy
public
void
Insert
(
int
index
,
MimeEntity
attachment
)
Parameters
index
Int32
The index to insert the attachment.
attachment
MimeEntity
The attachment.
Implements
IList
T
Insert(Int32, T)
Exceptions
Exception
Condition
ArgumentNullException
attachment
is
null
.
ArgumentOutOfRangeException
index
is out of range.
Remarks
Inserts the attachment at the specified index.
See Also
Reference
AttachmentCollection Class
MimeKit Namespace
Copyright © 2013-2023 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast