SortDescription Constructor
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the SortDescription structure.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- propertyName
- Type: System.String
The name of the property to sort the list by.
- direction
- Type: System.ComponentModel.ListSortDirection
The sort order.
| Exception | Condition |
|---|---|
| ArgumentNullException | The propertyName parameter is null. |
| ArgumentException | The propertyName parameter is empty. -or- The direction parameter does not specify a valid value. |
Show: