Add
MapiAttachmentCollection.Add method (1 of 3)
Adds the new attachment as embedded message.
public void Add(string name, MapiMessage msg)
Parameter |
Type |
Description |
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
MapiAttachmentCollection.Add method (2 of 3)
Adds the new attachment.
public void Add(string name, byte[] data)
Parameter |
Type |
Description |
name |
String |
The name of attachment. |
data |
Byte[] |
The attachment data. |
Exceptions
exception |
condition |
ArgumentNullException |
throws if attachment name is null or empty. |
ArgumentNullException |
throws if attachment data is null. |
See Also
MapiAttachmentCollection.Add method (3 of 3)
Adds an object to the end of the Collection.
public void Add(MapiAttachment item)
Parameter |
Type |
Description |
item |
MapiAttachment |
The object to be added to the end of the Collection. The value can be null for reference types. |
See Also