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

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

ArcGIS Pro version: 2.4 or higher.
See Also