ArcGIS Pro 3.0 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 SelectionSet Creates {get;}
    Public ReadOnly Property Creates 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, Windows 8.1

    See Also