This document is archived and information here might be outdated.  Recommended version.

IGxCatalogDefaultDatabase Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Catalog > ESRI.ArcGIS.Catalog > Interfaces > IG > IGxCatalogDefaultDatabase Interface
ArcGIS Developer Help

IGxCatalogDefaultDatabase Interface

Provides access to members that manages a GX catalog default geodatabase.

Product Availability

Available with ArcGIS Desktop.


Name Description
Read/write property DefaultDatabaseName The default geodatabase.
Read/write property DefaultDatabaseNameNoValidate The default geodatabase. Does not perform validation on the geodatabase.

Classes that implement IGxCatalogDefaultDatabase

Classes Description
Application (esriArcGlobe) Esri ArcGlobe Application.
Application (esriArcMap) Esri ArcMap Application
Application (esriArcScene) The 3D Modeling Application.
GxCatalog GxObject that represents the catalog.

The following code can be used to set the default geodatabase.

IWorkspaceName name = new WorkspaceNameClass();
name.WorkspaceFactoryProgID = "esriDataSourcesGDB.FileGDBWorkspaceFactory";
name.PathName = @"E:\Projects\WorldSoil\ProjectData.gdb";
IGxCatalogDefaultDatabase gdb = app as IGxCatalogDefaultDatabase;
gdb.DefaultDatabaseName = name;