// Selects a specific cache layer FeatureLayer featureLayer = _cacheData.Layers[0] as FeatureLayer; // Gets the feature layer data table schema FeatureDataTable featureDataTable = featureLayer.GetDataTable( ); // Creates a new row FeatureDataRow featureDataRow = featureDataTable.NewRow( );
if (featureLayer.AllowNew || featureLayer.AllowModify) { }
To check if it is possible to edit data you can use if (featureLayer.AllowNew || featureLayer.AllowModify) { } The only condition for editing data is an existing GLOBAL_ID field in the feature class. You can add it in ArcCatalog.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.