Menu.SetItemDataBound(MenuItem, Boolean) 方法

定義

使用指定值,設定指定 DataBound 物件的 MenuItem 屬性。Sets the DataBound property of the specified MenuItem object with the specified value.

protected:
 void SetItemDataBound(System::Web::UI::WebControls::MenuItem ^ node, bool dataBound);
protected void SetItemDataBound (System.Web.UI.WebControls.MenuItem node, bool dataBound);
member this.SetItemDataBound : System.Web.UI.WebControls.MenuItem * bool -> unit
Protected Sub SetItemDataBound (node As MenuItem, dataBound As Boolean)

參數

node
MenuItem

要設定的 MenuItemThe MenuItem to set.

dataBound
Boolean

true 表示要設定節點為資料繫結,否則為 falsetrue to set the node as data-bound; otherwise, false.

備註

SetItemDataBound方法是衍生類別用來設定 DataBound 所指定物件之屬性的 helper 方法 MenuItemThe SetItemDataBound method is a helper method used by derived classes to set the DataBound property of the specified MenuItem object.

適用於

另請參閱