ArcGIS Pro 2.9 API Reference Guide
CancelEdit(String,Boolean) Method

ArcGIS.Desktop.Editing.Events Namespace > EditCompletingEventArgs Class > CancelEdit Method : CancelEdit(String,Boolean) Method
Cancel the current EditOperation with an option to override.
Syntax
public void CancelEdit( 
   string errorMessage,
   bool canOverride
)
Public Overloads Sub CancelEdit( _
   ByVal errorMessage As String, _
   Optional ByVal canOverride As Boolean _
) 

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

See Also

Reference

EditCompletingEventArgs Class
EditCompletingEventArgs Members
Overload List