Sort the table by the specified property. This only affects enumeration by foreach loop.
| C# | Visual Basic |
public void Sort( MessageProperty property, bool descending )
Public Sub Sort ( _ property As MessageProperty, _ descending As Boolean _ )
- property (MessageProperty)
- Property to sort on (see Remarks).
- descending (Boolean)
- true to sort property descending, false to sort ascending.
Only the following properties are supported for sorting:- MessageDeliveryTime (Sort by time received.), SenderName (Sort by sender.), Subject (Sort by subject.) and ContentLength (Sort by size.)