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
[C#]
public esriDatasetType Type {get;}
[Java]
public  getType (
    esriDatasetType Type
)
[C++]
HRESULT get_Type(
  esriDatasetType* Type
);
[C++]

Parameters

Type [out, retval]

  Type is a parameter of type esriDatasetType

Product Availability

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

Remarks

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

Example

IDataset.Type Example