This document is archived and information here might be outdated.  Recommended version.


IDataLayer2 Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > ID > IDataLayer2 Interface
ArcGIS Developer Help

IDataLayer2 Interface

Provides access to additional members that control the data source properties of a layer.

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.
Method Disconnect Disconnects the data from the layer.
Method InWorkspace Returns TRUE if the layer is in the specified workspace.
Read/write property RelativeBase Base path used when storing relative path names.

Classes that implement IDataLayer2

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.
ImageServerLayer Image server layer source and display options.
IMSMapLayer A container for the display and manipulation of IMS layers.
KmlLayer (esriGlobeCore) Esri KML Layer class.
LasDatasetLayer The Terrain Layer class.
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.
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.

Remarks

This interface provides access to all of the methods and properties of IDataLayer and also two additional methods. Disconnect disconnects a layer from its data source. Given a workspace, InWorkspace returns a boolean indicating whether or not the layer's data source is in the workspace.