Share via


AttachmentCollection.Add Method

The Add method adds an instance of the Attachment class to the collection.

Overload List

Name Description
AttachmentCollection.Add ()
The Add method adds a new Attachment object to the collection.
AttachmentCollection.Add (String)
The Add method adds a new Attachment object to the collection by using the file name specified by the fileName parameter.
AttachmentCollection.Add (String, String)
The Add method adds a new Attachment object to the collection by using the file name specified by the fileName parameter and the content type specified by the contentType parameter.