IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) Yöntem

Tanım

Listeyi ve PropertyDescriptorListSortDirectiondeğerine göre sıralar.

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)

Parametreler

property
PropertyDescriptor

PropertyDescriptor Sıralama ölçütü.

direction
ListSortDirection

Değerlerden ListSortDirection biri.

Özel durumlar

Açıklamalar

Öğeler eklenir veya kaldırılırsa, bu öğeler sıralama sırasına göre yerleştirilir.

Ise bu yöntem desteklenir SupportsSortingtrue; aksi takdirde, bu yöntem bir NotSupportedExceptionoluşturur.

Uygulayanlara Notlar

Bu yöntemin uygulanması numaralandırma ile ListChanged bir Reset olay tetiklemelidir.

Şunlara uygulanır