ArcGIS Pro 2.7 API Reference Guide
IsCustomItem(String) Method

ArcGIS.Desktop.Core Namespace > ItemFactory Class > IsCustomItem Method : IsCustomItem(String) Method
The path to check
Determines whether the path points to a custom item or not
Syntax
public bool IsCustomItem( 
   string uri
)
Public Overloads Function IsCustomItem( _
   ByVal uri As String _
) As Boolean

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 10, Windows 8.1

See Also

Reference

ItemFactory Class
ItemFactory Members
Overload List