IGxCatalogDefaultDatabase Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Catalog > ESRI.ArcGIS.Catalog > Interfaces > IG > IGxCatalogDefaultDatabase Interface (ArcObjects .NET 10.6 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

Name 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;