ArcGIS Pro 2.9 API Reference Guide
CanGetDataset Method (ItemFactory)

ArcGIS.Desktop.Core Namespace > ItemFactory Class : CanGetDataset Method
The item to check.
Gets if the dataset for the item can be retrieved.
Syntax
public bool CanGetDataset( 
   Item item
)
Public 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

ItemFactory Class
ItemFactory Members