Click or drag to resize
MimeKit

MessageThreaderThread(IEnumerableIMessageSummary, ThreadingAlgorithm) Method

Thread the messages according to the specified threading algorithm.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static IList<MessageThread> Thread(
	this IEnumerable<IMessageSummary> messages,
	ThreadingAlgorithm algorithm
)

Parameters

messages  IEnumerableIMessageSummary
The messages.
algorithm  ThreadingAlgorithm
The threading algorithm.

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
ArgumentNullExceptionmessages is null.
ArgumentOutOfRangeExceptionalgorithm is not a valid threading algorithm.
ArgumentExceptionmessages contains one or more items that is missing information needed for threading.
Remarks
Thread the messages according to the specified threading algorithm.
See Also