ArcGIS Pro 3.4 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.
Version

AddReference(String,String,Func<Object>) Method
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
)

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