HierarchicalDataBoundControl.OnDataSourceChanged(Object, EventArgs) 方法

定義

當資料繫結控制項使用的 IHierarchicalDataSource 執行個體引發 DataSourceChanged 事件時呼叫。Called when the IHierarchicalDataSource instance that the data-bound control works with raises the DataSourceChanged event.

protected:
 virtual void OnDataSourceChanged(System::Object ^ sender, EventArgs ^ e);
protected virtual void OnDataSourceChanged (object sender, EventArgs e);
abstract member OnDataSourceChanged : obj * EventArgs -> unit
override this.OnDataSourceChanged : obj * EventArgs -> unit
Protected Overridable Sub OnDataSourceChanged (sender As Object, e As EventArgs)

參數

sender
Object

事件的來源:IHierarchicalDataSource 物件。The source of the event, the IHierarchicalDataSource object.

e
EventArgs

包含事件資料的 EventArgs 物件。An EventArgs object that contains event data.

備註

HierarchicalDataBoundControl類別會處理 DataSourceChanged 事件,以將屬性設 RequiresDataBindingtrueThe HierarchicalDataBoundControl class handles the DataSourceChanged event to set the RequiresDataBinding property to true.

適用於