ArcGIS Pro 2.8 API Reference Guide
CanOpen Method (PluginDatasourceTemplate)

ArcGIS.Core.Data.PluginDatastore Namespace > PluginDatasourceTemplate Class : CanOpen Method
The connection path to the actual data source.
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
)
Public Overridable Function CanOpen( _
   ByVal connectionPath As Uri _
) As Boolean

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

See Also

Reference

PluginDatasourceTemplate Class
PluginDatasourceTemplate Members