MenuItemTemplateContainer.DataItem Property

 

Gets or sets the menu item associated with the container.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public object DataItem { get; set; }

Property Value

Type: System.Object

A MenuItem that represents the menu item associated with the container.

Use the DataItem property to specify or determine the menu item associated with the container.

System_CAPS_noteNote

This property is used primarily by control developers when extending the Menu class.

.NET Framework
Available since 2.0
Return to top
Show: