Class MapiAttachmentCollection

MapiAttachmentCollection class

Represents a collection of MapiAttachment objects.

public class MapiAttachmentCollection : List<MapiAttachment>

Constructors

NameDescription
MapiAttachmentCollection()Initializes a new instance of the MapiAttachmentCollection class.
MapiAttachmentCollection(MapiMessageItemBase)Initializes a new instance of the MapiAttachmentCollection class.

Methods

NameDescription
Add(MapiAttachment)Adds an object to the end of the Collection.
Add(string, byte[])Adds the new attachment.
Add(string, MapiMessage)Adds the new attachment as embedded message.
Add(string, string, string, string)Adds the reference attachment.
Insert(int, MapiAttachment)Inserts an element into the Collection at the specified index.
Insert(int, string, MapiMessage)Inserts a message as attachment into the MapiAttachmentCollection at the specified index.
Remove(MapiAttachment)Removes the first occurrence of a specific object from the MapiAttachmentCollection.
RemoveAt(int)Removes the element at the specified index of the MapiAttachmentCollection.
Replace(int, string, MapiMessage)Replaces an element at the specified index.

See Also