BindingList<T>.RemoveSortCore 方法

定义

如果在派生类中实现排序,则移除通过 ApplySortCore(PropertyDescriptor, ListSortDirection) 应用的任何排序;否则将引发 NotSupportedExceptionRemoves any sort applied with ApplySortCore(PropertyDescriptor, ListSortDirection) if sorting is implemented in a derived class; otherwise, raises NotSupportedException.

protected:
 virtual void RemoveSortCore();
protected virtual void RemoveSortCore ();
abstract member RemoveSortCore : unit -> unit
override this.RemoveSortCore : unit -> unit
Protected Overridable Sub RemoveSortCore ()

例外

方法未在派生类中重写。Method is not overridden in a derived class.

注解

BindingList<T> 类不提供排序的基实现,因此 RemoveSortCore 总是默认引发 NotSupportedExceptionThe BindingList<T> class does not provide a base implementation of sorting, so RemoveSortCore always throws a NotSupportedException by default. 有关排序的详细信息,请参阅 ApplySortCore 方法。For more information about sorting, see the ApplySortCore method.

适用于