ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Editing.Events Namespace / EditCompletingEventArgs Class / CancelEdit Method / CancelEdit(String,Boolean) Method
Version

CancelEdit(String,Boolean) Method
Cancel the current EditOperation with an option to override.
Syntax
public void CancelEdit( 
   string errorMessage,
   bool canOverride
)

Parameters

errorMessage
canOverride
Remarks
This method is used internally by workflow manager during feature creation. A dialog is always displayed with a fixed title. The override determines if the user can override the cancel.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also