MapiAttachmentCollection.Insert
Insert(int, MapiAttachment)
Inserts an element into the Collection at the specified index.
public void Insert(int index, MapiAttachment item)
| Parameter | Type | Description |
|---|
| index | Int32 | The zero-based index at which item should be inserted. |
| item | MapiAttachment | The object to insert. The value can be null for reference types. |
Exceptions
| exception | condition |
|---|
| ArgumentOutOfRangeException | index is less than zero. |
See Also
Insert(int, string, MapiMessage)
Inserts a message as attachment into the MapiAttachmentCollection at the specified index.
public void Insert(int index, string name, MapiMessage msg)
| Parameter | Type | Description |
|---|
| index | Int32 | The zero-based index at which should be inserted. |
| name | String | The name of attachment. |
| msg | MapiMessage | The MapiMessage that represents the attached message. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | throws if message is null. |
See Also