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

In This Topic
    EditCompletedEventArgs Class
    In This Topic
    Provides information about the changes that were made by a recently completed EditOperation.
    Object Model
    EditCompletedEventArgs ClassSelectionSet ClassSelectionSet ClassSelectionSet Class
    Syntax
    public sealed class EditCompletedEventArgs 
    Public NotInheritable Class EditCompletedEventArgs 
    Remarks
    The delegate that you provide when subscribing, will receive an EditCompletedEventArgs from which your delegate can find information about the changes made.
    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.Desktop.Editing.Events.EditCompletedEventArgs

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also