ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / IItemFactory Interface / GetDatasetType Method
The item to check.
Version

GetDatasetType Method (IItemFactory)
Gets the ArcGIS.Core.Data.DatasetType for the item. If the dataset type cannot be determined, then ArcGIS.Core.Data.DatasetType.Unknown is returned.
Syntax
DatasetType GetDatasetType( 
   Item item
)

Parameters

item
The item to check.

Return Value

Exceptions
ExceptionDescription
item is null.
Remarks
Items which are currently unsupported with a dataset type include network datasets, parcel fabric datasets, BIM datasets. These items will return ArcGIS.Core.Data.DatasetType.Unknown.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also