Order By Class
Specifies a sort order for search results.
Definition
Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public class OrderBy- Inheritance
- Object OrderBy
- Derived
Remarks
You can combine multiple OrderBy rules to specify the sort
order that Sort(SearchQuery, IListOrderBy, CancellationToken)
should return the results in.
Constructors
| OrderBy | Initializes a new instance of the OrderBy class. |
Properties
Methods
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
Fields
| Arrival | Sort results by arrival date in ascending order. |
| Cc | Sort results by the first email address in the Cc header in ascending order. |
| Date | Sort results by the sent date in ascending order. |
| DisplayFrom | Sort results by the first display name in the From header in ascending order. |
| DisplayTo | Sort results by the first display name in the To header in ascending order. |
| From | Sort results by the first email address in the From header in ascending order. |
| ReverseArrival | Sort results by arrival date in descending order. |
| ReverseCc | Sort results by the first email address in the Cc header in descending order. |
| ReverseDate | Sort results by the sent date in descending order. |
| ReverseDisplayFrom | Sort results by the first display name in the From header in descending order. |
| ReverseDisplayTo | Sort results by the first display name in the To header in descending order. |
| ReverseFrom | Sort results by the first email address in the From header in descending order. |
| ReverseSize | Sort results by the message size in descending order. |
| ReverseSubject | Sort results by the Subject header in descending order. |
| ReverseTo | Sort results by the first email address in the To header in descending order. |
| Size | Sort results by the message size in ascending order. |
| Subject | Sort results by the Subject header in ascending order. |
| To | Sort results by the first email address in the To header in ascending order. |