AttachmentCollection members

The AttachmentCollection class represents a collection of Attachment objects.

The AttachmentCollection type exposes the following members.

Properties

  Name Description
Public property Count The Count property gets the number of elements that are contained in the collection.
Public property Item The Item property gets or sets the element in the specified index in the collection.

Top

Methods

  Name Description
Public method Add() The Add method adds a new Attachment object to the collection.
Public method Add(String) The Add method adds a new Attachment object to the collection by using the file name specified by the fileName parameter.
Public method 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.
Public method Clear The Clear method removes all elements from the collection.
Public method GetEnumerator The GetEnumerator method returns an enumerator object that can be used to iterate through the collection.
Public method Remove The Remove method removes an element from the collection based on the Attachment object specified by the attachment parameter.

Top

See also

Reference

AttachmentCollection class

Microsoft.Exchange.Data.Transport.Email namespace