Click or drag to resize
MimeKit

OrderBy Class

Specifies a sort order for search results.
Inheritance Hierarchy
SystemObject
  MailKit.SearchOrderBy
    MailKit.SearchOrderByAnnotation

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public class OrderBy

The OrderBy type exposes the following members.

Constructors
 NameDescription
Public methodOrderBy Initializes a new instance of the OrderBy class.
Top
Properties
 NameDescription
Public propertyOrder Gets the sort order.
Public propertyType Gets the field used for sorting.
Top
Methods
 NameDescription
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodToString
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberArrival Sort results by arrival date in ascending order.
Public fieldStatic memberCc Sort results by the first email address in the Cc header in ascending order.
Public fieldStatic memberDate Sort results by the sent date in ascending order.
Public fieldStatic memberDisplayFrom Sort results by the first display name in the From header in ascending order.
Public fieldStatic memberDisplayTo Sort results by the first display name in the To header in ascending order.
Public fieldStatic memberFrom Sort results by the first email address in the From header in ascending order.
Public fieldStatic memberReverseArrival Sort results by arrival date in desending order.
Public fieldStatic memberReverseCc Sort results by the first email address in the Cc header in descending order.
Public fieldStatic memberReverseDate Sort results by the sent date in descending order.
Public fieldStatic memberReverseDisplayFrom Sort results by the first display name in the From header in descending order.
Public fieldStatic memberReverseDisplayTo Sort results by the first display name in the To header in descending order.
Public fieldStatic memberReverseFrom Sort results by the first email address in the From header in descending order.
Public fieldStatic memberReverseSize Sort results by the message size in descending order.
Public fieldStatic memberReverseSubject Sort results by the Subject header in descending order.
Public fieldStatic memberReverseTo Sort results by the first email address in the To header in descending order.
Public fieldStatic memberSize Sort results by the message size in ascending order.
Public fieldStatic memberSubject Sort results by the Subject header in ascending order.
Public fieldStatic memberTo Sort results by the first email address in the To header in ascending order.
Top
Remarks
You can combine multiple OrderBy rules to specify the sort order that Sort(SearchQuery, IListOrderBy, CancellationToken) should return the results in.
See Also