ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / DynamicMenu Class / Add Method / Add(DynamicMenu,Func<Object>) Method

In This Topic
    Add(DynamicMenu,Func<Object>) Method
    In This Topic
    Adds a dynamic menu at runtime to the menu with an option to update the control's caption.
    Syntax
    protected void Add( 
       DynamicMenu menu,
       Func<object> menuContext
    )
    Protected Overloads Sub Add( _
       ByVal menu As DynamicMenu, _
       Optional ByVal menuContext As Func(Of Object) _
    ) 

    Parameters

    menu
    The dynamic menu instance to add to the menu.
    menuContext
    A function for the menus context menu.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also