Update datasource programmatically in Pro.

247
0
02-12-2020 01:28 PM
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