ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data Namespace / Datastore Class / GetPath Method

In This Topic
    GetPath Method (Datastore)
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also