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

In This Topic
    EditCompletedEvent Class
    In This Topic
    Occurs when an EditOperation completes successfully.
    Object Model
    EditCompletedEvent ClassSubscriptionToken ClassSubscriptionToken Class
    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.
    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



    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also