Click or drag to resize
MimeKit

MessageThreaderThread(IEnumerableIMessageSummary, ThreadingAlgorithm, IListOrderBy) Method

Threads the messages according to the specified threading algorithm and sorts the resulting threads by the specified ordering.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
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

IListMessageThread
The 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).
Exceptions
ExceptionCondition
ArgumentNullException

messages is null.

-or-

orderBy is null.

ArgumentOutOfRangeExceptionalgorithm 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.

Remarks
Threads the messages according to the specified threading algorithm and sorts the resulting threads by the specified ordering.
See Also