IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) Methode
Definition
Sortiert die Liste entsprechend einem PropertyDescriptor und einer ListSortDirection.Sorts the list based on a PropertyDescriptor and a ListSortDirection.
public:
void ApplySort(System::ComponentModel::PropertyDescriptor ^ property, System::ComponentModel::ListSortDirection direction);
public void ApplySort (System.ComponentModel.PropertyDescriptor property, System.ComponentModel.ListSortDirection direction);
abstract member ApplySort : System.ComponentModel.PropertyDescriptor * System.ComponentModel.ListSortDirection -> unit
Public Sub ApplySort (property As PropertyDescriptor, direction As ListSortDirection)
Parameter
- property
- PropertyDescriptor
Der PropertyDescriptor, nach dem sortiert werden soll.The PropertyDescriptor to sort by.
- direction
- ListSortDirection
Einer der ListSortDirection-Werte.One of the ListSortDirection values.
Ausnahmen
SupportsSorting ist false
.SupportsSorting is false
.
Hinweise
Wenn Elemente hinzugefügt oder entfernt werden, werden diese Elemente in der Sortierreihenfolge platziert.If items are added or removed, these items are placed in the order of the sort.
Diese Methode wird unterstützt, wenn SupportsSorting ist true
, andernfalls löst diese Methode eine aus NotSupportedException .This method is supported if SupportsSorting is true
; otherwise, this method throws a NotSupportedException.
Hinweise für Ausführende
Die Implementierung dieser Methode sollte ein- ListChanged Ereignis mit der- Reset Enumeration aufwerfen.The implementation of this method should raise a ListChanged event with the Reset enumeration.