Select to view content in your preferred language

How can I check exist featureTable in geodatabase?

919
2
11-09-2018 01:31 AM
SK2
by
Emerging Contributor

I would like to check featuretable is exist in geodatabase.

How can I check it?

0 Kudos
2 Replies
PreetiMaske
Esri Regular Contributor

If you know the table name or display name of the table, you can check if table exists in a geodatabase.

```

var gdb = await Geodatabase.OpenAsync(localFilePath);
var tb=gdb.GeodatabaseFeatureTables.Select(a => a.DisplayName == "Lines_Sync2");
if (tb != null)

    MessageBox.Show("Table exists");

```

SK2
by
Emerging Contributor

Thank you so much.

I could checked to exist featuretable.

0 Kudos