goldford23

Implementing Persistence in an Add-in Vs. Standalone Application

Discussion created by goldford23 on Apr 2, 2012
Latest reply on Apr 2, 2012 by Neil
The Add-in namespace allows an add-in extension to persist data to the document (I assume) stream by overriding the OnLoad and OnSave events with a write / read to the stream.  Here is what I see changing between an Add-In persisting and a standalone extension persisting data to the stream:


       Add-In      ///          Standalone
OnLoad     ///             Load
  OnSave   ///              Save
System.IO.Stream  ///  ESRI.ArcGIS.esriSystem.IVariantStream



The Read and ReadByte methods in the System.IO.Stream aren't as nice as the ones in IVariantStream.  Can I still use the IVariantStream in an add-in to store/retrieve add-in extension settings?

Outcomes