SortDescription Constructor (String^, ListSortDirection)

 

Initializes a new instance of the SortDescription structure.

Namespace:   System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

public:
SortDescription(
	String^ propertyName,
	ListSortDirection direction
)

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
Return to top
Show: