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

In This Topic
    OnRename Method
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also