MenuItemTemplateContainer Constructor

Note: This constructor is new in the .NET Framework version 2.0.

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
)

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 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: