ArcGIS Pro 2.7 API Reference Guide
OnRename Method

ArcGIS.Desktop.Core Namespace > CustomItemBase Class : OnRename Method
The new item name
Override to implement any custom logic for rename of your item
Syntax
protected virtual bool OnRename( 
   string newName
)
Protected Overridable Function OnRename( _
   ByVal newName As String _
) As Boolean

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

See Also

Reference

CustomItemBase Class
CustomItemBase Members