BindingSource.RemoveSort 方法

定義

移除與 BindingSource 有關的排序。Removes the sort associated with the BindingSource.

public:
 virtual void RemoveSort();
public virtual void RemoveSort ();
abstract member RemoveSort : unit -> unit
override this.RemoveSort : unit -> unit
Public Overridable Sub RemoveSort ()

實作

例外狀況

基礎清單不支援排序。The underlying list does not support sorting.

備註

RemoveSort方法會將要求參考至基礎清單的 IBindingList.RemoveSort 方法。The RemoveSort method refers the request to the underlying list's IBindingList.RemoveSort method. 只有執行 IBindingList 支援排序的清單。Only lists that implement IBindingList support sorting.

根據預設,呼叫這個方法相當於將 Sort 屬性設為 nullBy default, a call to this method is equivalent to setting the Sort property to null.

適用於

另請參閱