ArcGIS Pro 2.7 API Reference Guide
GetPath Method (Datastore)

ArcGIS.Core.Data Namespace > Datastore Class : GetPath Method
Gets the path to the currently opened data store (e.g., an enterprise geodatabase .sde connection file). This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Uri GetPath()
Public Function GetPath() As Uri

Return Value

A System.Uri that encapsulates a path to the underlying data store. If the path does not exist, null is returned.
Exceptions
ExceptionDescription
No valid data store has been opened or the type of data store is currently not supported prior to invoking this operation.
A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Datastore Class
Datastore Members