IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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
SupportsSorting, false
değeridir.
Açıklamalar
Öğeler eklenir veya kaldırılırsa, bu öğeler sıralama sırasına göre yerleştirilir.
Bu yöntem ise SupportsSortingtrue
desteklenir; aksi takdirde, bu yöntem bir NotSupportedExceptionoluşturur.
Uygulayanlara Notlar
Bu yöntemin uygulanması, numaralandırma ile Reset bir ListChanged olay tetiklemelidir.
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin