BindingList<T>.ApplySortCore メソッド

定義

派生クラスでオーバーライドされた場合は、項目を並べ替えます。それ以外の場合は NotSupportedException をスローします。

protected:
 virtual void ApplySortCore(System::ComponentModel::PropertyDescriptor ^ prop, System::ComponentModel::ListSortDirection direction);
protected virtual void ApplySortCore (System.ComponentModel.PropertyDescriptor prop, System.ComponentModel.ListSortDirection direction);
abstract member ApplySortCore : System.ComponentModel.PropertyDescriptor * System.ComponentModel.ListSortDirection -> unit
override this.ApplySortCore : System.ComponentModel.PropertyDescriptor * System.ComponentModel.ListSortDirection -> unit
Protected Overridable Sub ApplySortCore (prop As PropertyDescriptor, direction As ListSortDirection)

パラメーター

prop
PropertyDescriptor

並べ替える対象のプロパティを指定する PropertyDescriptor

direction
ListSortDirection

ListSortDirection 値のいずれか 1 つ。

例外

メソッドは、派生クラスでオーバーライドされません。

注釈

クラスは BindingList<T> 並べ替えの基本実装を提供しないため ApplySortCore 、既定では常に が NotSupportedException スローされます。 並べ替えを有効にするには、 から BindingList<T> 派生し、次のタスクを実行します。

さらに、補足 SortDirectionCore プロパティと SortPropertyCore 並べ替えプロパティを実装することもできます。

適用対象