IDataLayer Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > ID > IDataLayer Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IDataLayer Interface

Provides access to members that control the data source properties of a layer. Note: the IDataLayer interface has been superseded byIDataLayer2. Please consider using the more recent version.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Name Description
Method Connect Connects the layer to its data source. An optional name object can be specified to aid in repairing a lost connection.
Read/write property DataSourceName Name of the data object for the layer.
Read-only property DataSourceSupported Indicates if the specified data object name is supported by the layer.
Read/write property RelativeBase Base path used when storing relative path names.

CoClasses that implement IDataLayer

CoClasses and Classes Description
BasemapSubLayer Wrapper for layers in the basemap.
CadAnnotationLayer An Esri Cad annotation layer.
CadastralFabricLayer Cadastral Fabric Layer Object.
CadastralFabricSubLayer Cadastral Fabric Feature Layer Object.
CadFeatureLayer Esri CAD Feature Layer class.
CadLayer Esri CAD Layer class.
CoverageAnnotationLayer An Esri coverage annotation layer.
DimensionLayer A collection of properties for a dimension layer.
FDOGraphicsLayer A collection of properties for an annotation layer (feature data object graphics layer).
FeatureLayer A collection of features and their visual representation.
GdbRasterCatalogLayer Geodabase RasterCatalog source and display options.
GeoVideoLayer (esriGlobeCore) The georeferenced video layer.
GlobeLayer (esriGlobeCore) The cache-only globe layer.
GlobeServerLayer (esriGlobeCore) Provides programmatic access to a globe server layer.
ImageServerLayer Image server layer source and display options.
IMSMapLayer A container for the display and manipulation of IMS layers.
IMSSubFeatureLayer A collection of IMS features as a sublayer of an IMSMapLayer.
KmlLayer (esriGlobeCore) Esri KML Layer class.
LasDatasetLayer The Terrain Layer class.
MapServerLayer Provides programmatic access to a map server layer.
MapServerRESTLayer Provides programmatic access to a a layer based on MapServer using REST access.
MosaicLayer The layer implementation of the Mosaic Dataset.
NALayer (esriNetworkAnalyst) The layer for defining, solving, and viewing network analysis results.
NetworkLayer Esri Network Layer CoClass.
RasterCatalogLayer Raster catalog source and display options.
RasterLayer Raster layer source and display options.
RepresentationRenderer A renderer that draws features using representation information stored in the layer�s data source.
SchematicLayer (esriSchematic) A Schematic layer object.
StandaloneTable A standalone table.
TemporalFeatureLayer (esriTrackingAnalyst) Defines the coclass IDL parameters and attributes of the TemporalFeatureLayer COM object.
TerrainLayer The Terrain Layer class.
TinLayer The TIN Layer class.
TopologyLayer A collection of properties for a topology layer.
WCSLayer WCS layer source and display options.
WMSMapLayer A container for the display and manipulation of WMS layers.
WMTSLayer Provides programmatic access to WMTS layer.

Remarks

This interface provides access to information about the data source of the layer including: the data source name, the base path used in relative pathnames, and whether the layer supports the data source. There is also a method to connect to the data source if the connection has been lost.

.NET Samples

ArcGIS Network Analyst extension Engine application (Code Files: frmLoadLocations frmMain) | TOCControl metadata viewer (Code Files: MetadataViewer)

.NET Related Topics

How to create an image server layer