Message ThreaderThread(IEnumerableIMessage Summary, Threading Algorithm) Method
Thread the messages according to the specified threading algorithm.
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
)Parameters
- messages IEnumerableIMessageSummary
- The messages.
- algorithm ThreadingAlgorithm
- The threading algorithm.
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
Thread the messages according to the specified threading algorithm.
Exceptions
| ArgumentNullException | messages is . |
| ArgumentOutOfRangeException | algorithm is not a valid threading algorithm. |
| ArgumentException | messages contains one or more items that is missing information needed for threading. |