ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.PluginDatastore Namespace / PluginDatasourceTemplate Class / CanOpen Method
The connection path to the actual data source.
Version

CanOpen Method (PluginDatasourceTemplate)
Gets a value indicating whether the data source associated with connectionPath can be opened by this concrete implementation.
Syntax
public virtual bool CanOpen( 
   Uri connectionPath
)

Parameters

connectionPath
The connection path to the actual data source.

Return Value

true if the data source associated with connectionPath can be opened; otherwise, false. The default is false.
Remarks
From time to time, some subsystems in ArcGIS Pro may need to query this method to determine whether a path to a data source can be opened by a data store, plugin or otherwise. For example, the geoprocessing subsystem may call this method as part of its "post tool execution". If this method returns true, geoprocessing may proceed to instantiate this plug-in data source in order to perform some system-specific tasks.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also