Share via


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

備註

如果下列其中一個條件成立,方法會 DataBindItems 清除 屬性,然後呼叫 DataBind 基底方法:

參數 dataBoundControlMenu 與此設計工具或該控制項複本相關聯的控制項。

適用於

另請參閱