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

DefaultGeodatabasePath Property
Gets the current project's default geodatabase
Syntax
public string DefaultGeodatabasePath {get;}
Example
Get the project's default gdb path
var projGDBPath = Project.Current.DefaultGeodatabasePath;
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also