Message ThreaderThread(IEnumerableIMessage Summary, Threading Algorithm, IListOrder By) Method
Threads the messages according to the specified threading algorithm
and sorts the resulting threads by the specified ordering.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The threaded messages.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public static IList<MessageThread> Thread(
this IEnumerable<IMessageSummary> messages,
ThreadingAlgorithm algorithm,
IList<OrderBy> orderBy
)Parameters
- messages IEnumerableIMessageSummary
- The messages.
- algorithm ThreadingAlgorithm
- The threading algorithm.
- orderBy IListOrderBy
- The requested sort ordering.
Return Value
IListMessageThreadThe threaded messages.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableIMessageSummary. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Remarks
Threads the messages according to the specified threading algorithm
and sorts the resulting threads by the specified ordering.
Exceptions
| ArgumentNullException |
messages is . -or- orderBy is . |
| ArgumentOutOfRangeException | algorithm is not a valid threading algorithm. |
| ArgumentException |
messages contains one or more items that is missing information needed for threading or sorting. -or- orderBy is an empty list. |