SortDescriptor Constructor (String, ListSortDirection)

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Initializes a new instance of the SortDescriptor class with the specified property to use for sorting, and the sort direction.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)

Syntax

'Declaration
Public Sub New ( _
    propertyPath As String, _
    direction As ListSortDirection _
)
'Usage
Dim propertyPath As String
Dim direction As ListSortDirection

Dim instance As New SortDescriptor(propertyPath, _
    direction)
public SortDescriptor(
    string propertyPath,
    ListSortDirection direction
)
public:
SortDescriptor(
    String^ propertyPath, 
    ListSortDirection direction
)
new : 
        propertyPath:string * 
        direction:ListSortDirection -> SortDescriptor
public function SortDescriptor(
    propertyPath : String, 
    direction : ListSortDirection
)

Parameters

See Also

Reference

SortDescriptor Class

SortDescriptor Overload

System.Windows.Controls Namespace