Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ImapMessageCollection.Sort Method

Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9147)

Sort()

Sorts the messages in the entire ImapMessageCollection by sequence number ascending.

Declaration
public void Sort()

Sort(IComparer)

Sorts the elements in the entire ImapMessageCollection using the specified comparer.

Declaration
public void Sort(IComparer comparer)
Parameters
Type Name Description
IComparer comparer

The IComparer implementation to use when comparing elements, or a null reference to sort by sequence number ascending.

Remarks

This method uses Sort(IComparer), which uses QuickSort algorithm. See its description for more information.

Sort(Int32, Int32, IComparer)

Sorts the elements in a section of ImapMessageCollection using the specified comparer.

Declaration
public void Sort(int index, int count, IComparer comparer)
Parameters
Type Name Description
Int32 index

The zero-based starting index of the range to sort.

Int32 count

The length of the range to sort.

IComparer comparer

The IComparer implementation to use when comparing elements, or a null reference to sort by sequence number ascending.

Remarks

This method uses Sort(Int32, Int32, IComparer), which uses QuickSort algorithm. See its description for more information.

In This Article
  • Sort()
  • Sort(IComparer)
  • Sort(Int32, Int32, IComparer)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies