ArcGIS Pro 2.9 API Reference Guide
GetDatasetType Method (ItemFactory)

ArcGIS.Desktop.Core Namespace > ItemFactory Class : 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
public DatasetType GetDatasetType( 
   Item item
)
Public 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

ItemFactory Class
ItemFactory Members