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.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.