SortDescription Constructor (String^, ListSortDirection)
.NET Framework (current version)
Initializes a new instance of the SortDescription structure.
Assembly: WindowsBase (in WindowsBase.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 cannot be null. |
| ArgumentException | The propertyName parameter cannot be empty |
| InvalidEnumArgumentException | The direction parameter does not specify a valid value. |
.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: