Update datasource programmatically in Pro.

241
0
02-19-2020 08:16 AM
EvgenyBozhenko
New Contributor

I need to read and update a datasource of *.lyr,*.lyrs, *.aprx and *.lpkx from file system or in a project Catalog connected folders/subfolders.
Currently I can change a FetureLayer datasource LayerFactory.Instance.CreateLayer(Uri, map) but the layer is added to the map.
Can I create a FeatureLayer in memory or is there other ways get and update datasource?

 

Thanks,

Evgeny

0 Kudos
0 Replies