ImapMessageCollection Class
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9313)
Provides a container for a collection of ImapMessageInfo objects.
Syntax
public sealed class ImapMessageCollection : IList<ImapMessageInfo>, ICollection<ImapMessageInfo>, IEnumerable<ImapMessageInfo>, IEnumerable
  Implements
Inherited Members
Constructors
| Name | Description | 
|---|---|
| ImapMessageCollection() | Initializes a new instance of the ImapMessageCollection class.  | 
      
Properties
| Name | Description | 
|---|---|
| Count | Gets the number of elements contained in the ImapMessageCollection.  | 
      
| Item[Int32] | Gets the ImapMessageInfo at the specified index.  | 
      
| SyncRoot | Gets an object that can be used to synchronize access to the ImapMessageCollection.  | 
      
Methods
| Name | Description | 
|---|---|
| Add(ImapMessageInfo) | Adds the ImapMessageInfo to the ImapMessageCollection.  | 
      
| Clear() | Removes all items from the collection.  | 
      
| Clone() | Creates a shallow copy of the ImapMessageCollection.  | 
      
| Contains(ImapMessageInfo) | Determines whether the specified item is present in the ImapMessageCollection.  | 
      
| CopyTo(ImapMessageInfo[], Int32) | Copies the range of elements from the ImapMessageCollection to a one-dimensional ImapMessageInfo array, starting at the specified index of the target array.  | 
      
| Find(Int32) | Returns the ImapMessageInfo of the specified id.  | 
      
| Find(String) | Returns the ImapMessageInfo of the specified unique id.  | 
      
| GetEnumerator() | Gets an IEnumerator<T> for the ImapMessageCollection collection.  | 
      
| GetEnumerator(Int32, Int32) | Returns an enumerator for a section of the ImapMessageCollection.  | 
      
| IndexOf(ImapMessageInfo) | Returns a zero-based index of the specified item within the ImapMessageCollection, or -1 if not found.  | 
      
| Insert(Int32, ImapMessageInfo) | Inserts the ImapMessageInfo at the specified position in the ImapMessageCollection.  | 
      
| Remove(ImapMessageInfo) | Removes the specified ImapMessageInfo from the ImapMessageCollection.  | 
      
| Remove(Int32) | Removes ImapMessageInfo from the ImapMessageCollection having specified sequence number.  | 
      
| Remove(String) | Removes ImapMessageInfo from the ImapMessageCollection having specified unique id.  | 
      
| RemoveAt(Int32) | Removes the ImapMessageInfo at the specified index from the ImapMessageCollection.  | 
      
| Sort() | Sorts the messages in the entire ImapMessageCollection by sequence number ascending.  | 
      
| Sort(IComparer) | Sorts the elements in the entire ImapMessageCollection using the specified comparer.  | 
      
| Sort(Int32, Int32, IComparer) | Sorts the elements in a section of ImapMessageCollection using the specified comparer.  | 
      
| ToSequenceNumberMessageSet() | Returns an ImapMessageSet that contains sequence numbers of messages in this collection.  | 
      
| ToUniqueIdMessageSet() | Returns an ImapMessageSet that contains unique IDs of messages in this collection.  | 
      
Explicit Interface Implementations
| Name | Description | 
|---|---|
| ICollection<ImapMessageInfo>.IsReadOnly | Gets a value indicating whether the collection is read-only.  | 
      
| ICollection<ImapMessageInfo>.Remove(ImapMessageInfo) | Removes the specified ImapMessageInfo from the ImapMessageCollection.  | 
      
| IEnumerable.GetEnumerator() | Returns an enumerator that can iterate through the ImapMessageCollection  |