ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / IItemFactory Interface / IsCustomItem Method / IsCustomItem(String) Method
The path to check
Version

IsCustomItem(String) Method
Determines whether the path points to a custom item or not.
Syntax
bool IsCustomItem( 
   string uri
)

Parameters

uri
The path to check

Return Value

True if the path points to a custom item
Exceptions
ExceptionDescription
Throw when invalid characters are present in the path.
Remarks
The function uses the file extension of the path to compare with custom items file extensions read from currently loaded add-ins
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also