ArcGIS Pro 2.7 API Reference Guide
AddReference(String,String,Func<Object>) Method

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.
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 10, Windows 8.1

See Also

Reference

DynamicMenu Class
DynamicMenu Members
Overload List