Muokkaa

Jaa


MenuDesigner.DataBind(BaseDataBoundControl) Method

Definition

Binds the associated control to the design-time data source.

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)

Parameters

dataBoundControl
BaseDataBoundControl

The Menu to bind to the design-time data source.

Remarks

If one of the following conditions is true, the DataBind method clears the Items property, and then calls the DataBind base method:

  • The DataSourceID property is not null or an empty string ("").

  • The DataSource property is not null.

  • The Items collection contains one or more elements.

The dataBoundControl parameter is the Menu control that is associated with this designer or a copy of that control.

Applies to

See also