ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / DefaultGeodatabasePath Property
Example

In This Topic
    DefaultGeodatabasePath Property
    In This Topic
    Gets the current project's default geodatabase
    Syntax
    Public ReadOnly Property DefaultGeodatabasePath As String
    public string DefaultGeodatabasePath {get;}
    Example
    Get the project's default gdb path
    {
      var projGDBPath = Project.Current.DefaultGeodatabasePath;
      // Use projGDBPath;
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also