ArcObjects Library Reference  (GeoDatabase)    

IDataset.Type Property

The type of the Dataset.

[Visual Basic 6.0]
Property Type As esriDatasetType
[Visual Basic .NET]
Public ReadOnly Property Type As esriDatasetType
public esriDatasetType Type {get;}
public  getType (
    esriDatasetType Type
HRESULT get_Type(
  esriDatasetType* Type


Type [out, retval]

  Type is a parameter of type esriDatasetType

Product Availability

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


The Type property returns the an esriDatasetType value indicating the dataset type, such as esriDTTable or esriDTFeatureClass.
[Visual Basic 6.0]
This code example shows IDataset in use on three different objects; FeatureClass, FeatureDataset, and Workspace. It assumes a valid IFeatureClass pointer.
Dim pDataset As IDataset
Set pDataset = pFeatureClass
Debug.Print pDataset.Name & " " & pDataset.Type
If Not pFeatureClass.FeatureDataset Is Nothing Then
  Set pDataset = pFeatureClass.FeatureDataset
  Debug.Print pDataset.Name & " " & pDataset.Type
End If
Set pDataset = pDataset.Workspace
Debug.Print pDataset.Name & " " & pDataset.Type

See Also

IDataset Interface


IDataset.Type Example