IBindingList.RemoveSort 方法

定义

使用 ApplySort(PropertyDescriptor, ListSortDirection) 移除任何已应用的排序。Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).

public:
 void RemoveSort();
public void RemoveSort ();
abstract member RemoveSort : unit -> unit
Public Sub RemoveSort ()

例外

注解

如果 trueSupportsSorting,则支持此属性;否则,此属性将引发 NotSupportedExceptionThis property is supported if SupportsSorting is true; otherwise, this property throws a NotSupportedException.

调用此方法时,应使用 Reset 枚举引发 ListChanged 事件。When you call this method, you should raise a ListChanged event with the Reset enumeration.

适用于