ItemFromID(String) Method

The ItemFromID method of the MenuItemCollection class returns a MenuItem in a collection, and all sub-collections with an ID matching the parameter.

Parameters

menuItemID   The unique identifier of the menu item.

Return Value

A MenuItem object with the specified ID. Returns null if a MenuItem does not exist.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security