SortDescription(String, ListSortDirection) Constructor

Definition

Inizializza una nuova istanza della struttura SortDescription.Initializes a new instance of the SortDescription structure.

public:
 SortDescription(System::String ^ propertyName, System::ComponentModel::ListSortDirection direction);
public SortDescription (string propertyName, System.ComponentModel.ListSortDirection direction);
new System.ComponentModel.SortDescription : string * System.ComponentModel.ListSortDirection -> System.ComponentModel.SortDescription
Public Sub New (propertyName As String, direction As ListSortDirection)

Parameters

propertyName
String

Nome della proprietà in base alla quale ordinare l'elenco.The name of the property to sort the list by.

direction
ListSortDirection

Ordinamento.The sort order.

Exceptions

Il parametro direction non specifica un valore valido.The direction parameter does not specify a valid value.

Applies to