ArcGIS Pro 2.7 API Reference Guide
FindItem(String) Method

ArcGIS.Desktop.Core Namespace > Project Class : FindItem(String) Method
The path to the item on disk
Find the item identified by the physical path.
Syntax
public Item FindItem( 
   string path
)
Public Function FindItem( _
   ByVal path As String _
) As Item

Parameters

path
The path to the item on disk

Return Value

Remarks
FindItem first looks in the Project index. If the item is not found, FindItem browses for the item on disk.

Note: If the path corresponds to a folder or file geodatabase not currently added to the project, the item, if found, will be added to the project (and will be indexed)

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Project Class
Project Members