MapiAttachmentCollection.Insert
Contents
[
Hide
]Insert(int, MapiAttachment)
Inserts an attachment at the specified position.
public void Insert(int index, MapiAttachment item)
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | The zero-based position to insert at. |
| item | MapiAttachment | The attachment to insert. |
Exceptions
| exception | condition |
|---|---|
| ArgumentOutOfRangeException | index is less than zero or greater than the number of attachments. |
See Also
- class MapiAttachment
- class MapiAttachmentCollection
- namespace Aspose.Email.Mapi
- assembly Aspose.Email
Insert(int, string, MapiMessage)
Inserts a message as an embedded attachment at the specified position.
public void Insert(int index, string name, MapiMessage msg)
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | The zero-based position to insert at. |
| name | String | The name of the attachment. |
| msg | MapiMessage | The message to attach. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | msg is null. |
See Also
- class MapiMessage
- class MapiAttachmentCollection
- namespace Aspose.Email.Mapi
- assembly Aspose.Email