ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / DynamicMenu Class / AddReference Method / AddReference(String,String,Func<Object>) Method
the DAML to add to the menu.
The updated caption.

In This Topic
    AddReference(String,String,Func<Object>) Method
    In This Topic
    Adds an existing DAML control to the menu with an option to update the control's caption.
    Syntax
    protected void AddReference( 
       string refID,
       string newCaption,
       Func<object> menuContext
    )
    Protected Overloads Sub AddReference( _
       ByVal refID As String, _
       Optional ByVal newCaption As String, _
       Optional ByVal menuContext As Func(Of Object) _
    ) 

    Parameters

    refID
    the DAML to add to the menu.
    newCaption
    The updated caption.
    menuContext
    A function for the menus context menu.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also