BaseDataBoundControlDesigner.DataBind(BaseDataBoundControl) 方法

定义

在派生类中重写时,执行必要的操作来设置派生自该类的 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方法时,请执行必要的操作来设置数据绑定控件,以便在检索设计时标记时,控件会正确呈现。 通常,出于性能原因,需要关联设计时数据源而不是实时数据源。

适用于

另请参阅