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


IFeatureLayer.DataSourceType Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IF > IFeatureLayer Interface > IFeatureLayer.DataSourceType Property
ArcGIS Developer Help

IFeatureLayer.DataSourceType Property

Data source type.

[Visual Basic .NET]
Public Property DataSourceType As String
[C#]
public string DataSourceType {get; set;}
[C++]
HRESULT get_DataSourceType(
  System.String* Text
);
[C++]
HRESULT put_DataSourceType(
  BSTR Text
);
[C++]
Parameters
Text [out, retval]

Text is a parameter of type BSTR* Text [in]
Text is a parameter of type BSTR

Product Availability

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

Description

Describes the type of data referenced by the feature layer. In ArcMap and ArcCatalog, this description appears on the layer's properties dialog on the Source tab after "Data Type:"

Remarks

By default, the DataSourceType for a layer matches the value returned by IDataset::Category when you access the layer's feature class through IDataset. You can set a layer's DataSourceType to any string.

Here is a list of default values for DataSourceType for common feature layer types:

Layer Type Value
Personal Geodatabase "Personal Geodatabase Feature Class"
SDE "SDE Feature Class"
Shapefile "Shapefile Feature Class"
ArcGIS for Desktop Advanced or PC ArcInfo Coverage (annotation) "Annotation Feature Class"
ArcGIS for Desktop Advanced or PC ArcInfo Coverage (point) "Point Feature Class"
ArcGIS for Desktop Advanced or PC ArcInfo Coverage (line) "Arc Feature Class"
ArcGIS for Desktop Advanced or PC ArcInfo Coverage (polygon) "Polygon Feature Class"
Edge "StreetMap Feature Class"
CAD (annotation) "CAD Annotation Feature Class"
CAD (point) "CAD Point Feature Class"
CAD (line) "CAD Polyline Feature Class"
CAD (polygon) "CAD Polygon Feature Class"

See Also

IFeatureLayer Interface