ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Core Namespace / ItemFactory Class / GetDatasetType Method
The item to check.

In This Topic
    GetDatasetType Method (ItemFactory)
    In This Topic
    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

    ArcGIS Pro version: 3 or higher.
    See Also