ArcGIS Pro 2.9 API Reference Guide
CanGetDataset Method (IItemFactory)

ArcGIS.Desktop.Core Namespace > IItemFactory Interface : CanGetDataset Method
The item to check.
Gets if the dataset for the item can be retrieved.
Syntax
bool CanGetDataset( 
   Item item
)
Function CanGetDataset( _
   ByVal item As Item _
) As Boolean

Parameters

item
The item to check.

Return Value

True if the dataset can be retrieved. False otherwise.
Remarks
Currently only the types listed within ArcGIS.Core.Data.DatasetType are supported. Others items such as network datasets, parcel fabric datasets, BIM datasets will return false.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

IItemFactory Interface
IItemFactory Members