How can I Load Feature class from local File GDB to scene through button click event?

1523
3
Jump to solution
01-19-2021 09:51 PM
Shanmugapriya55
Emerging Contributor

Hi All!

I am trying to load a feature class from local file GDB to scene through button click event. I have referred the following link that shows loading contents from local file GDB to map.

https://developers.arcgis.com/net/10-2/sample-code/FeatureLayerFromLocalGeodatabase/ 

But it shows some errors like,

  1. Error CS1061 'Geodatabase' does not contain a definition for 'FeatureTables' and no accessible extension method 'FeatureTables' accepting a first argument of type 'Geodatabase' could be found (are you missing a using directive or an assembly reference?) 
  2. Error CS0117 'FeatureLayer' does not contain a definition for 'ID' 
  3. Error CS0117 'FeatureLayer' does not contain a definition for 'DisplayName'

I can't able to find solutions for that.

And I have attached the error screenshot below.

It would be great pleasure if anyone helps me out in this😊

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Maartenvan_Hulzen
Esri Contributor

Maybe try this sample https://developers.arcgis.com/net/latest/wpf/sample-code/feature-layer-geodatabase/ because that is from the most recent version (the 10.2 branch is retired)

View solution in original post

3 Replies
Maartenvan_Hulzen
Esri Contributor

Maybe try this sample https://developers.arcgis.com/net/latest/wpf/sample-code/feature-layer-geodatabase/ because that is from the most recent version (the 10.2 branch is retired)

Shanmugapriya55
Emerging Contributor

Thank you for your response!

It's working fine😊

0 Kudos
Wolf
by Esri Regular Contributor
Esri Regular Contributor

You are using the 'ArcGIS Runtime SDK for .NET' and posted your question in the 'ArcGIS Pro SDK for .Net'.  Slight difference in the name, but the APIs are very different.  Kudos to Marteen, who knows both APIs, but in the future you will get better results if you post your questions  under 'ArcGIS Runtime SDK for .NET'.

0 Kudos