Simple Mail and Post Office Protocol for .Net (SmtPop)

MimeAttachmentList.Sort Method (Int32, Int32, IComparer)

Sorts the elements in the specified range using the specified IComparer interface.

public virtual void Sort(
   int index,
   int count,
   IComparer comparer
);

Parameters

index
The zero-based starting index of the range of elements to sort.
count
The number of elements to sort.
comparer

The IComparer implementation to use when comparing elements.

-or-

A null reference to use the IComparable implementation of each element.

Remarks

Please refer to Sort for details.

Exceptions

Exception Type Condition
ArgumentException index and count do not denote a valid range of elements in the MimeAttachmentList.
ArgumentOutOfRangeException

index is less than zero.

-or-

count is less than zero.

NotSupportedException The MimeAttachmentList is read-only.

See Also

MimeAttachmentList Class | SmtPop Namespace | MimeAttachmentList.Sort Overload List