MailMessageCollection Class
Represents a collection of MailMessage objects.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionMailMessage
    Aspose.EmailMailMessageCollection

Namespace: Aspose.Email
Assembly: Aspose.Email (in Aspose.Email.dll) Version: 20.1
Syntax
public class MailMessageCollection : Collection<MailMessage>

The MailMessageCollection type exposes the following members.

Constructors
  NameDescription
Public methodMailMessageCollection
Initialize a new instance of the class MailMessageCollection.
Properties
  NameDescription
Public propertyCount
Gets the number of elements actually contained in the CollectionT.
(Inherited from CollectionMailMessage.)
Public propertyItem
Gets or sets the element at the specified index.
(Inherited from CollectionMailMessage.)
Protected propertyItems
Gets a IListT wrapper around the CollectionT.
(Inherited from CollectionMailMessage.)
Methods
  NameDescription
Public methodAdd
Adds an object to the end of the CollectionT.
(Inherited from CollectionMailMessage.)
Public methodClear
Removes all elements from the CollectionT.
(Inherited from CollectionMailMessage.)
Protected methodClearItems
Removes all elements from the CollectionT.
(Inherited from CollectionMailMessage.)
Public methodContains
Determines whether an element is in the CollectionT.
(Inherited from CollectionMailMessage.)
Public methodCopyTo
Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionMailMessage.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the CollectionT.
(Inherited from CollectionMailMessage.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionMailMessage.)
Public methodInsert
Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionMailMessage.)
Protected methodInsertItem
Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionMailMessage.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionMailMessage.)
Public methodRemoveAt
Removes the element at the specified index of the CollectionT.
(Inherited from CollectionMailMessage.)
Protected methodRemoveItem
Removes the element at the specified index of the CollectionT.
(Inherited from CollectionMailMessage.)
Protected methodSetItem
Replaces the element at the specified index.
(Inherited from CollectionMailMessage.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Remarks
Provides a simple collection object that can represent a set of MailMessage objects. The MailMessageCollection class provides a simple collection object that can be used to store a set of MailMessage objects.
See Also