Gets or sets the data source properties for the FeatureLayers underlying data.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

C#
public DataSourceProperties DataSourceProperties { get; set; }
Visual Basic (Declaration)
Public Property DataSourceProperties As DataSourceProperties

Field Value

A DataSourceProperties object containing the connection parameters for the FeatureLayers underlying data.

Remarks

In order to successfully Connect()()() a FeatureLayer to a data source you must specify the connection details using this property. This varies according to the type of vector data that the layer references:
  • Shapefile: Populate the DataSourceProperties with the fully qualified path to the shapefile (.shp).
  • File geodatabase feature class: Populate the DataSourceProperties with the path to the file geodatabase and the feature class name.
  • ArcSDE feature class: Populate the DataSourceProperties with the ArcSDEConnectionProperties and a feature class name.

The property is set implicitly if you specify the DataSourceProperties when you create the FeatureLayer, or if you use one of the static Open methods: OpenShapefile(String), OpenFromTable(Table), OpenFileGeodatabaseTable(String, String) or OpenArcSDETable(ArcSDEConnectionProperties, String).

See Also