BindingNavigator.OnRefreshItems 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
引发 RefreshItems 事件。
protected:
virtual void OnRefreshItems();
protected virtual void OnRefreshItems();
abstract member OnRefreshItems : unit -> unit
override this.OnRefreshItems : unit -> unit
Protected Overridable Sub OnRefreshItems ()
注解
除了引发相应的 RefreshItems 事件外, OnRefreshItems 该方法还针对关联的 BindingSource状态执行以下操作。
使用当前 BindingSource 状态设置内部成员。
启用或禁用适合当前 BindingSource 状态的用户界面(UI)项。
引发事件会通过委托调用事件处理程序。 有关详细信息,请参阅 处理和引发事件。
该方法 OnRefreshItems 还允许派生类在不附加委托的情况下处理事件。 这是处理派生类中的事件的首选技术。
继承者说明
在派生类中重写 OnRefreshItems() 时,请务必调用基类的方法,以便已注册的 OnRefreshItems() 委托接收事件。