ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing.Events Namespace / RowChangedEventArgs Class / CancelEdit Method / CancelEdit(Func<Task<Boolean>>) Method
This function will be called and its result awaited after the edit operation and if it returns true the Edit will be retried.

In This Topic
    CancelEdit(Func<Task<Boolean>>) Method
    In This Topic
    Cancel the current EditOperation with a callback to execute code and possibly retry.
    Syntax
    Public Overloads Sub CancelEdit( _
       ByVal callback As Func(Of Task(Of Boolean)) _
    ) 
    public void CancelEdit( 
       Func<Task<bool>> callback
    )

    Parameters

    callback
    This function will be called and its result awaited after the edit operation and if it returns true the Edit will be retried.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also