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


IGxCatalogDefaultDatabase Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Catalog)  

IGxCatalogDefaultDatabase Interface

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

Product Availability

Available with ArcGIS Desktop.

Members

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

CoClasses that implement IGxCatalogDefaultDatabase

CoClasses and Classes Description
Application (esriArcGlobe) Esri ArcGlobe Application.
Application (esriArcMap) Esri ArcMap Application
Application (esriArcScene) The 3D Modeling Application.
GxCatalog GxObject that represents the catalog.
[C#]

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;