Persisting data by implementing an extension using add-ins


PurposeAn extension participates in document persistence during the Save and Open events in ArcGIS for Desktop applications. This sample shows how to persist data in a document by implementing an extension using add-ins.


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. Build the solution in Visual Studio.
  2. Start ArcMap and load data.
  3. Save the document.
  4. Close ArcMap and reopen the saved document. A message box displays with the user name and the time when the document was saved.

LogExtension.cs Extension implementation.
Config.esriaddinx Add-in declarations in XML.
Download the C# files
LogExtension.vb Extension implementation.
Config.esriaddinx Add-in declarations in XML.
Download the VB.NET files

Download the files for all languages




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