CachedAttribute Class (2007 System)
Visual Studio 2008
Instructs the Visual Studio Tools for Office runtime to add the specified data object to the data cache in the document.
Assembly: Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll)
This attribute can only be used in a document-level customization created by using Visual Studio Tools for Office.
To add an object to the data cache in a document, the object must have a public type that meets the requirements of XmlSerializer. For more information about adding objects to the data cache, see Caching Data. For more information about using attributes, see Extending Metadata Using Attributes.
If you want to have greater control over the caching behavior of the data object, you can implement the ICachedType interface in the type of the object.