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 ()

例外狀況

備註

如果SupportsSorting為, true則支援這個屬性; 否則NotSupportedException, 這個屬性會擲回。This property is supported if SupportsSorting is true; otherwise, this property throws a NotSupportedException.

當您呼叫這個方法時, 您應該引發ListChanged Reset具有列舉的事件。When you call this method, you should raise a ListChanged event with the Reset enumeration.

適用於