MenuDesigner.DataBind(BaseDataBoundControl) 方法

定义

将关联控件绑定到设计时数据源。

protected:
 override void DataBind(System::Web::UI::WebControls::BaseDataBoundControl ^ dataBoundControl);
protected override void DataBind (System.Web.UI.WebControls.BaseDataBoundControl dataBoundControl);
override this.DataBind : System.Web.UI.WebControls.BaseDataBoundControl -> unit
Protected Overrides Sub DataBind (dataBoundControl As BaseDataBoundControl)

参数

dataBoundControl
BaseDataBoundControl

要绑定到设计时数据源的 Menu 控件。

注解

如果下列条件之一为 true,该方法 DataBindItems 清除 属性,然后调用 DataBind 基方法:

  • 属性 DataSourceID 不是 null 或空字符串 (“”) 。

  • DataSource 属性不为 null

  • 集合 Items 包含一个或多个元素。

参数 dataBoundControlMenu 与此设计器关联的控件或该控件的副本。

适用于

另请参阅