Parameters
- inspector
- An inspector that specifies the features or rows and their attributes.
| Exception | Description |
|---|---|
| System.InvalidOperationException | Angle can only be set for Point geometries or Two-point polyline geometries. |
QueuedTask.Run(() =>
{
var insp = new Inspector();
insp.Load(featLayer, oid);
//get the shape of the feature
var myGeometry = insp.Shape;
//get an attribute 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();
});
Target Platforms: Windows 11, Windows 10, Windows 8.1