System.Web.UI.WebControls.MenuItemCollection.Count Property

Gets the number of menu items contained in the current System.Web.UI.WebControls.MenuItemCollection object.

Syntax

public int Count { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the MenuItemCollection.Count property to determine the number of items in a System.Web.UI.WebControls.MenuItemCollection object. This property is commonly used when iterating through a collection to determine the upper bound of the collection. The MenuItemCollection.Count property is also commonly used to determine whether a collection is empty.

Requirements

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