ArcGIS Pro 2.6 API Reference Guide
Modify(Inspector) Method
Example 

ArcGIS.Desktop.Editing Namespace > EditOperation Class > Modify Method : Modify(Inspector) Method
An inspector that specifies the features or rows and their attributes.
Modify a feature or row defined by an inspector object.
Syntax
public void Modify( 
   Inspector inspector
)
Public Overloads Sub Modify( _
   ByVal inspector As Inspector _
) 

Parameters

inspector
An inspector that specifies the features or rows and their attributes.
Exceptions
ExceptionDescription
Angle can only be set for Point geometries or Two-point polyline geometries.
Remarks
This method is used to update the geometry and/or attribute values of features.
Example
QueuedTask.Run(() =>
{
  var insp = new Inspector();
  insp.Load(featLayer, oid);

  //get the shape of the feature
  var myGeometry = insp.Shape;

  //get an attribue value by name
  var propValue = insp["Prop_value"];

  //set an attribute value by name
  insp["Parcel_no"] = 42;

  //perform the edit
  var op = new EditOperation();
  op.Name = "Update parcel";
  op.Modify(insp);
  op.Execute();
});
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

EditOperation Class
EditOperation Members
Overload List