ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Data Namespace / FileGeodatabaseConnectionPath Class / FileGeodatabaseConnectionPath Constructor
A valid path to a file geodatabase folder that ends with the .gdb extension.
Example

In This Topic
    FileGeodatabaseConnectionPath Constructor
    In This Topic
    Initializes a new instance of the FileGeodatabaseConnectionPath class.
    Syntax
    public FileGeodatabaseConnectionPath( 
       Uri path
    )
    Public Function New( _
       ByVal path As Uri _
    )

    Parameters

    path
    A valid path to a file geodatabase folder that ends with the .gdb extension.
    Exceptions
    ExceptionDescription
    path is null.
    The path in path does not end with the .gdb extension.
    Example
    Opening a File Geodatabase given the path
    {
      await QueuedTask.Run(() =>
      {
        // Opens a file geodatabase. This will open the geodatabase if the folder exists and contains a valid geodatabase.
        using (Geodatabase geodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(@"C:\Data\LocalGovernment.gdb"))))
        {
          // Use the geodatabase.
        }
      });
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also