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

In This Topic
    Deletes Property (EditCompletedEventArgs)
    In This Topic
    Gets the collection of feature IDs that were deleted by the EditOperation.
    Syntax
    Public ReadOnly Property Deletes As SelectionSet
    public SelectionSet Deletes {get;}
    Example
    Subscribe to EditCompletedEvent
    // Subscribe to the <see cref="ArcGIS.Desktop.Editing.Events.EditCompletedEvent"/>,
    // allowing the application to respond to edit operations such as feature creation, modification, or deletion.public static void SubEditEvents()
    var eceToken = EditCompletedEvent.Subscribe(editCompletedEventArgs =>
      {
        //show number of edits
        Console.WriteLine("Creates: " + editCompletedEventArgs.Creates.ToDictionary().Values.Sum(list => list.Count).ToString());
        Console.WriteLine("Modifies: " + editCompletedEventArgs.Modifies.ToDictionary().Values.Sum(list => list.Count).ToString());
        Console.WriteLine("Deletes: " + editCompletedEventArgs.Deletes.ToDictionary().Values.Sum(list => list.Count).ToString());
        return Task.FromResult(0);
      });
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also