ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / CustomItemBase Class / OnRename Method
The new item name
Version

OnRename Method
Override to implement any custom logic for rename of your item
Syntax
protected virtual bool OnRename( 
   string newName
)

Parameters

newName
The new item name

Return Value

True if rename is successfull
Remarks
If the custom item points to a file on disk, it is the responsibility of the custom item to rename the file accordingly. The item Path should also be updated to point to the renamed file.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also