Insert

MapiAttachmentCollection.Insert method (1 of 2)

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


MapiAttachmentCollection.Insert method (2 of 2)

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