System.Web.UI.WebControls.MenuItem.Parent Property

Gets the parent menu item of the current menu item.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public MenuItem Parent { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the MenuItem.Parent property to determine the parent menu item or to access its properties.

Note:

A root menu item does not have a parent menu item.

To access the submenu items of the current menu item, use the MenuItem.ChildItems property.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0