Assembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 220.127.116.110 (18.104.22.1680)
public sealed class DataSourceProperties
|Visual Basic (Declaration)|
Public NotInheritable Class DataSourceProperties
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.