ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / ExecuteMode Property
Example Version

ExecuteMode Property
Gets and sets the execute mode for the operation. Default value is ExecuteModeType.Default.
Syntax
public ExecuteModeType ExecuteMode {get; set;}
Example
Order edits sequentially
// perform an edit and then a split as one operation.
QueuedTask.Run(() =>
{
  var queryFilter = new QueryFilter() { WhereClause = "OBJECTID = " + oid.ToString() };

  // create an edit operation and name.
  var op = new EditOperation() { Name = "modify followed by split" };
  // set the ExecuteMode
  op.ExecuteMode = ExecuteModeType.Sequential;

  using (var rowCursor = fc.Search(queryFilter, false))
  {
    while (rowCursor.MoveNext())
    {
      using (var feature = rowCursor.Current as Feature)
      {
        op.Modify(feature, "NAME", newName);
      }
    }
  }

  op.Split(layer, oid, splitLine);
  if (!op.IsEmpty)
  {
    bool result = op.Execute();
  }
  // else
  //  The operation doesn't make any changes to the database so if executed it will fail
});
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also