Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
System.InvalidOperationException | No associated feature service |
//must support editing! //var featSceneLayer = .... ; if (!featSceneLayer.HasAssociatedFeatureService || !featSceneLayer.IsEditable) return; var delOp = new EditOperation() { Name = "Delete selected features" }; //Assuming we have a selection on the layer... delOp.Delete(featSceneLayer, featSceneLayer.GetSelection().GetObjectIDs()); await delOp.ExecuteAsync();//await if needed but not required
Target Platforms: Windows 11, Windows 10