You can use pfeatureclass.FeatureDataset if the feature class is stored inside feature dataset. if not use below statement to convert ifeatureclass to idataset and then get the connection properties.IDataset pdataset = pfeatureclass as IDataset;
Just for reference, may be wrong�?�Data Type: IFeatureLayer.DataSourceType �?�Feature Class: IFeatureLayer.featureClass �?�SERVER: IFeatureLayer.featureClass->Idataset->IpropertySet->GetProperty("Server") �?�INSTANCE:IFeatureLayer.featureClass->Idataset->IpropertySet->GetProperty("Instance") �?�Location:IFeatureLayer.featureClass->Idataset->IpropertySet->GetProperty("database") �?�AUTHENTICATION_MODE:IFeatureLayer.featureClass->Idataset->IpropertySet->GetProperty("AUTHENTICATION_MODE") �?�VERSION:IFeatureLayer.featureClass->Idataset->IpropertySet->GetProperty("version")Regards,Bing
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.