ArcGIS Pro 2.7 API Reference Guide
Create(Layer,Geometry,Action<Int64>) Method

ArcGIS.Desktop.Editing Namespace > EditOperation Class > Create Method : Create(Layer,Geometry,Action<Int64>) Method
The layer to create a new feature in.
The geometry of the new feature.
An optional callback that will be called with the resulting OID of the newly created feature.
Creates a new feature in the given layer given a geometry with default geodatabase values.
Syntax
public void Create( 
   Layer layer,
   Geometry geometry,
   Action<long> result
)
Public Overloads Sub Create( _
   ByVal layer As Layer, _
   ByVal geometry As Geometry, _
   Optional ByVal result As Action(Of Long) _
) 

Parameters

layer
The layer to create a new feature in.
geometry
The geometry of the new feature.
result
An optional callback that will be called with the resulting OID of the newly created feature.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

EditOperation Class
EditOperation Members
Overload List