ArcGIS Pro 2.9 API Reference Guide
DefaultGeodatabaseOption Property

ArcGIS.Desktop.Core Namespace > GeneralOptions Class : DefaultGeodatabaseOption Property
Gets and sets whether new projects are created with a new file geodatabase or with an existing geodatabase.
Syntax
public OptionSetting DefaultGeodatabaseOption {get; set;}
Public Property DefaultGeodatabaseOption As OptionSetting
Remarks
When set to OptionSetting.UseDefault, newly created projects are created with a new file geodatabase. Set DefaultGeodatabaseOption to OptionSetting.UseCustom to use a path to an existing geodatabase (defined in CustomDefaultGeodatabase) instead. Note: attempting to set DefaultGeodatabaseOption to UseCustom will be ignored if CustomDefaultGeodatabase does not already contain a path to a valid geodatabase. To set DefaultGeodatabaseOption to UseCustom, the CustomDefaultGeodatabase must be set first/>.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

GeneralOptions Class
GeneralOptions Members