AnsweredAssumed Answered

How can I get the database for a layer based on the CIMFeatureDatasetDataConnection (GetDataConnection)?

Question asked by cspoerri on Aug 16, 2015
Latest reply on Aug 23, 2015 by cspoerri

Hi there,

 

I was wondering if it's possible to get the actual geodatabase through the BasicFeatureLayer.GetDataConnection() method, which (can) return a CIMFeatureDatasetDataConnection.

 

I found, that when working with a filegdb, I can get the path for the fgdb. The path I can use in return to create a new Geodatabase object. If I try to do the same with an enterprise gdb, I can retrieve only the connection string. Even though I can use the connection string to create a new ConnectionProperies object, the object can not be used to open a Geodatabase. If I try this, I can some type of time-out.

 

I'm now wondering, if there's an easier way to get the underlying Geodatabase object for a feature layer.

 

thanks in advance,

Chris

Outcomes