Represents the connection information to one of the following data types: geodatabase feature class, geodatabase raster, shapefile or any of the supported file-based raster formats. The information stored by instances of this class are used by FeatureLayer and RasterLayer objects to make a connection to the specified data source.

Namespace:  ESRI.ArcGISExplorer.Data

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public sealed class DataSourceProperties
Visual Basic (Declaration)
Public NotInheritable Class DataSourceProperties

Remarks

This class is only used by the FeatureLayer and RasterLayer classes in the Mapping namespace and is not used by any of the classes within the Data namespace.

A FeatureLayer or RasterLayer can only be connected to a single data source, so some of the properties will always remain uninitialized for a particular DataSourceType. For example, both the ArcSDEConnectionProperties and DatasetName properties are irrelevant when a FeatureLayer is connected to a shapefile as the Path property specifies all the information required to make the connection.

You cannot set the properties of a DataSourceProperties object if it has been used to connect a layer and the IsConnected property is trueTruetruetrue (True in Visual Basic). If you want to reuse a DataSourceProperties object to make a connection to a different data source Clone the object then optionally Clear the existing properties.

For more information on working with the DataSourceProperties class, see How to open tabular and vector data and How to open raster data.

Inheritance Hierarchy

System..::.Object

  ESRI.ArcGISExplorer.Data..::.DataSourceProperties

See Also