ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Editing.Events Namespace / EditCompletedEvent Class
Members Example Version

    EditCompletedEvent Class
    Occurs when an EditOperation completes successfully.
    Object Model
    EditCompletedEvent ClassSubscriptionToken ClassSubscriptionToken Class
    Syntax
    Remarks
    You can Subscribe to listen for EditCompletedEvents and specify a delegate that will be executed upon receiving the event. To stop listening, you can Unsubscribe. EventCompletedEventArgs holds information about the event.
    Example
    Subscribe to EditCompletedEvent
    protected void subEditEvents()
    {
      //subscribe to editcompleted
      var eceToken = EditCompletedEvent.Subscribe(onEce);
    }
    
    protected Task onEce(EditCompletedEventArgs args)
    {
      //show number of edits
      Console.WriteLine("Creates: " + args.Creates.ToDictionary().Values.Sum(list => list.Count).ToString());
      Console.WriteLine("Modifies: " + args.Modifies.ToDictionary().Values.Sum(list => list.Count).ToString());
      Console.WriteLine("Deletes: " + args.Deletes.ToDictionary().Values.Sum(list => list.Count).ToString());
      return Task.FromResult(0);
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.Events.EventBase
          ArcGIS.Core.Events.AsyncPresentationEvent<TPayload>
             ArcGIS.Desktop.Editing.Events.EditCompletedEvent

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also