AnsweredAssumed Answered

ArcGIS Pro SDK 2.0: Open Geodatabase by path

Question asked by maxmaxmaxmaxmax on Jul 3, 2017
Latest reply on Jul 3, 2017 by gkmieliauskas_cellexp

With ArcGIS Pro SDK 1.4 I could do this:

new Geodatabase(geodatabasePath)

where geodatabasePath can be path of FGDB or SDE file.

 

I know that now there are constructor overloads for FGDB and SDE. But the problem is that I don't know which database type will be presented by geodatabasePath.

 

How can I create an instance of the Geodatabase by path that can be either path of FGDB or SDE file? Or maybe there is some method that can say what geodatabase type presented by a path?

Outcomes