How can I check exist featureTable in geodatabase?

504
2
11-09-2018 01:31 AM
SK2
by
New Contributor II

I would like to check featuretable is exist in geodatabase.

How can I check it?

0 Kudos
2 Replies
PreetiMaske
Esri 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
New Contributor II

Thank you so much.

I could checked to exist featuretable.

0 Kudos