BaseDataBoundControlDesigner.DataBind(BaseDataBoundControl) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中重写时,执行必要的操作来设置派生自该类的 BaseDataBoundControl 关联控件。
protected:
abstract void DataBind(System::Web::UI::WebControls::BaseDataBoundControl ^ dataBoundControl);
protected abstract void DataBind(System.Web.UI.WebControls.BaseDataBoundControl dataBoundControl);
abstract member DataBind : System.Web.UI.WebControls.BaseDataBoundControl -> unit
Protected MustOverride Sub DataBind (dataBoundControl As BaseDataBoundControl)
参数
- dataBoundControl
- BaseDataBoundControl
与此 BaseDataBoundControl 设计器关联的项。
注解
在从类派生DataBind的设计器中重写BaseDataBoundControlDesigner方法时,请执行必要的操作来设置数据绑定控件,以便在检索设计时标记时,控件会正确呈现。 通常,出于性能原因,需要关联设计时数据源而不是实时数据源。