ArcGIS Pro 2.9 API Reference Guide
OnAddToMapEx(Map) Method

ArcGIS.Desktop.Mapping Namespace > IMappableItemEx Interface > OnAddToMapEx Method : OnAddToMapEx(Map) Method
The map to which the item will be added.
Add the item to the map.
Syntax
string[] OnAddToMapEx( 
   Map map
)
Overloads Function OnAddToMapEx( _
   ByVal map As Map _
) As String()

Parameters

map
The map to which the item will be added.

Return Value

The set of Uris for any data created.
Remarks
This method is typically called via the "Add Data" command, "Add Data from Path" command or if the item is dragged/dropped onto the map.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

IMappableItemEx Interface
IMappableItemEx Members
Overload List