ArcGIS Pro 2.7 API Reference Guide
Inspector Constructor
Example 

ArcGIS.Desktop.Editing.Attributes Namespace > Inspector Class : Inspector Constructor
(optional) Set to true to allow features/rows to be updated. Set to false if you are using the Inspector in conjuction with the AddAttributeAsync methods or the LoadSchema methods./> The default value is true.
Create a new instance of the inspector class.
Syntax
public Inspector( 
   bool isFeatureEditing
)
Public Function New( _
   Optional ByVal isFeatureEditing As Boolean _
)

Parameters

isFeatureEditing
(optional) Set to true to allow features/rows to be updated. Set to false if you are using the Inspector in conjuction with the AddAttributeAsync methods or the LoadSchema methods./> The default value is true.
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();
});
var insp = new Inspector();
insp.LoadSchema(featLayer);
var attrib = insp.Where(a => a.FieldName == "Mineral").First();

attrib.AddValidate(() =>
{
  if (attrib.CurrentValue.ToString() == "Salt")
    return Enumerable.Empty<ArcGIS.Desktop.Editing.Attributes.Attribute.ValidationError>();
  else return new[] { ArcGIS.Desktop.Editing.Attributes.Attribute.ValidationError.Create("Error", ArcGIS.Desktop.Editing.Attributes.Severity.Low) };
});
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Inspector Class
Inspector Members