Compartir a través de


AttachmentCollection Members

Include Protected Members
Include Inherited 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 Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator The GetEnumerator method returns an enumerator object that can be used to iterate through the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove The Remove method removes an element from the collection based on the Attachment object specified by the attachment parameter.
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable<Attachment>.GetEnumerator
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator

Top