Timestamper class extension


PurposeThis sample provides an example of a geodatabase class extension that implements the optional IObjectClassEvents interface. By listening to object creation and modification events from the base class, this extension automatically maintains creation and modification time stamps for each object in the class, along with the name of the user who created or last modified the object. Along with this class extension, this sample contains two ancillary classes—a custom class description and a custom property page. The custom class description allows time-stamped feature classes to be created from ArcCatalog and the property page allows users to configure the class extension from ArcCatalog.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Open the solution in Visual Studio.
  2. Ensure ArcCatalog is closed. Build the solution's class library in Visual Studio (this registers the class extension, description, and property page with ArcGIS).
  3. Start ArcCatalog. When creating a feature class in a geodatabase, Timestamped Class should show as a type of class.
  4. After creating a time-stamped feature class, view the feature class's properties. There should be a Timestamp Settings tab that allows the extension to be configured.

TimestampClassExtension.cs Class extension source.
TimestampClassDescription.cs Class description source.
TimestampPropertyPage.cs Feature class property page source.
Download the C# files
TimestampClassExtension.vb Class extension source.
TimestampClassDescription.vb Class description source.
TimestampPropertyPage.vb Feature class property page source.
Download the VB.NET files

Download the files for all languages

See Also:

Creating class extensions
How to create property pages and property sheets




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced