AnsweredAssumed Answered

How to access data source of feature layer?  IDataLayer2.DataSourceName.NameString does not work.

Question asked by seannakasone on Sep 29, 2016
Latest reply on Oct 4, 2016 by seannakasone

Hi, how do I obtain the data source of a feature layer in a map document, see pic below.

I tried to use...

IDataLayer2.DataSourceName.NameString

But it seems like DataSourceName is a COM object.

DataSourceName is described here...

http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000380000000

It seems like it should just work.

Suggestions?

 

Outcomes