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

In This Topic
    Creates Property
    In This Topic
    Gets the collection of feature IDs that were created by the EditOperation.
    Syntax
    Public ReadOnly Property Creates As SelectionSet
    public SelectionSet Creates {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