ArcGIS Pro 2.9 API Reference Guide
GetDatasetType Method (IItemFactory)

ArcGIS.Desktop.Core Namespace > IItemFactory Interface : GetDatasetType Method
The item to check.
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
)
Function GetDatasetType( _
   ByVal item As Item _
) As DatasetType

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, Windows 8.1

See Also

Reference

IItemFactory Interface
IItemFactory Members