I'm using the method new FeatureLayerCreationParams(new Uri(xyz)) to add layers from SDE to the map. How can I set the added layers as read-only and uneditable?
Hi,
Here is a code snippet that sets a FeatureLayer to be uneditable.
QueuedTask.Run(() => { var cimFeatureLayer = layer.GetDefinition() as CIMFeatureLayer; var featureTable = cimFeatureLayer.FeatureTable; featureTable.Editable = false; cimFeatureLayer.FeatureTable = featureTable; layer.SetDefinition(cimFeatureLayer); });
Thank you so much.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.