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.

 

 

End Function

 

相关文章: