MenuItemTemplateContainer.MenuItemTemplateContainer Constructor

Initializes a new instance of the MenuItemTemplateContainer class using the specified menu item index and menu item.

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

public:
MenuItemTemplateContainer (
	int itemIndex, 
	MenuItem^ dataItem
)
public MenuItemTemplateContainer (
	int itemIndex, 
	MenuItem dataItem
)
public function MenuItemTemplateContainer (
	itemIndex : int, 
	dataItem : MenuItem
)
Not applicable.

Parameters

itemIndex

The index of the menu item.

dataItem

The MenuItem object associated with the container.

Use this constructor to create a new instance of the MenuItemTemplateContainer class using the specified menu item index and menu item.

The following table shows initial property values for an instance of MenuItemTemplateContainer class.

Property

Initial value

DataItem

The value of the dataItem parameter.

ItemIndex

The value of the itemIndex parameter.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: