ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Editing.Events Namespace / EditCompletedEventArgs Class / Deletes Property
Example

In This Topic
    Deletes Property
    In This Topic
    Gets the collection of feature IDs that were deleted by the EditOperation.
    Syntax
    public SelectionSet Deletes {get;}
    Public ReadOnly Property Deletes As SelectionSet
    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);
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also