The sample below shows how to get source sde database type of layer.
It uses IDataLayer2 and IDatabaseConnectionInfo2 interface.
- IDataLayer2 : Provides access to additional members that control the data source properties of a layer.
- IDatabaseConnectionInfo2 : Provides access to members that provide information about the Workspace's connected database.































来自:http://www.cnblogs.com/iswszheng/archive/2009/05/15/1457324.html