IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) 方法

定義

根據 PropertyDescriptorListSortDirection 來排序清單。

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)

參數

property
PropertyDescriptor

要做為排序依據的 PropertyDescriptor

direction
ListSortDirection

其中一個 ListSortDirection 值。

例外狀況

備註

如果新增或移除專案,這些專案會依排序順序排列。

如果 為 SupportsSortingtrue,則支援這個方法,否則這個方法會擲回 NotSupportedException

給實施者的注意事項

這個方法的實作應該使用 Reset 列舉引發ListChanged事件。

適用於