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 值之一。

例外

SupportsSorting 上声明的默认值为 false

注解

如果添加或删除了项,这些项将按排序顺序放置。

如果 SupportsSortingtrue为 ,则支持此方法;否则,此方法将 NotSupportedException引发 。

实施者说明

此方法的实现应引发具有 ListChangedReset 枚举的事件。

适用于