Share via


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)

Syntax

'Declaration
Public Interface ICachedType
public interface ICachedType

The ICachedType type exposes the following members.

Properties

  Name Description
Public property IsDirty Gets a value that indicates whether the cached type has changed since the last time it was saved.

Top

Methods

  Name Description
Public method AfterLoad Called after the Visual Studio Tools for Office runtime has finished loading the type.
Public method AfterSave Called after a save operation is completed for the type.
Public method BeforeLoad Called before the Visual Studio Tools for Office runtime loads the type.
Public method BeforeSave Called before the Visual Studio Tools for Office runtime persists the type into the document.

Top

Remarks

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.

See Also

Reference

Microsoft.VisualStudio.Tools.Applications.Runtime Namespace