Displaying a workspace's properties in a custom property page

Description:

Geodatabases can be stored in a number of different DBMSs. For example, a geodatabase can be stored in Oracle, SQL Server, Microsoft Access, and so on. That geodatabase can also be accesed through an ArcSDE 8.0.2 or ArcSDE 8.1 service. The geodatabase may have 8.0.2 system tables, or 8.1 system tables Depending upon the combination of DBMS, ArcSDE version, and geodatabase system table version, the workspace may vary in the functionality it supports. For example, geodatabases that are served by ArcSDE 8.1 are aware of their configuration keywords, while those that are served by ArcSDE 8.0.2 are not. This example demonstrates how implementing the IComPropertyPage interface and using the IWorkspaceProperties and IGeodatabaseRelease interfaces allows you to create your own property page to display properties for a particular geodatabase.

How to use:
  1. View the source code to see how the component was implemented.
  2. Run the batch file called '_INSTALL.bat' to register the dll and it's appropriate component category.
  3. In ArcCatalog, right-click a geodatabase and click Properties.
  4. Click the General tab.
  5. A list of some of the geodatabase properties and whether they are supported by that geodatabase is displayed. If the geodatabase knows its configuration keywords, these are also shown.

Application:
ArcCatalog

Difficulty: Intermediate


Visual Basic
File Description
_INSTALL.bat Installation script that installs the dll.
KWProperties.vbp Visual Basic project that implements this sample.
clsKWPropPg.cls VB class file containing the IComPropertyPage implementation.
frmKeywords.frm VB form containing the property page.
KWProperties.dll The compiled project.


Key Interfaces: IWorkspaceProperties, IWorkspaceProperty, IGeodatabaseRelease, IWorkspaceConfiguration, IEnumConfigurationKeyword, IConfigurationKeyword