ICachedType Interface

Customizes the caching behavior of a type in document-level customizations.

Namespace:  Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly:  Microsoft.VisualStudio.Tools.Applications.Runtime (in Microsoft.VisualStudio.Tools.Applications.Runtime.dll)

public interface ICachedType

The ICachedType type exposes the following members.

  NameDescription
Public propertyIsDirtyGets a value that indicates whether the cached type has changed since the last time it was saved.
Top

  NameDescription
Public methodAfterLoadCalled after the Visual Studio Tools for Office runtime has finished loading the type.
Public methodAfterSaveCalled after a save operation is completed for the type.
Public methodBeforeLoadCalled before the Visual Studio Tools for Office runtime loads the type.
Public methodBeforeSaveCalled before the Visual Studio Tools for Office runtime persists the type into the document.
Top

Classes that implement ICachedType offer a greater degree of control over caching behavior to the developer than classes that simply conform to the requirements of XmlSerializer. For more information, see Caching Data.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft