Menu class

Represents the menu for a Web Part.

System.Object
  Microsoft.SharePoint.WebPartPages.Menu

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

No code example is currently available or this language may not be supported.

The following code example shows an overridden CreateWebPartMenuThat includes two custom Boolean properties, ParentItemIsVisible and EnableItem1, that allow you to control when these menu items are visible and enabled. It also assumes that this method is part of a Web Part class that includes an event handler named EventHandlerForItem1.

No code example is currently available or this language may not be supported.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: