ICachedType 接口

自定义文档级自定义项中的类型的缓存行为。

命名空间:  Microsoft.VisualStudio.Tools.Applications.Runtime
程序集:  Microsoft.VisualStudio.Tools.Applications.Runtime(在 Microsoft.VisualStudio.Tools.Applications.Runtime.dll 中)

语法

声明
Public Interface ICachedType
public interface ICachedType

ICachedType 类型公开以下成员。

属性

  名称 说明
公共属性 IsDirty 获取一个值,该值指示缓存的类型自上次保存以来是否已更改。

页首

方法

  名称 说明
公共方法 AfterLoad 在 Visual Studio Tools for Office Runtime 完成加载类型后调用。
公共方法 AfterSave 在完成类型的保存操作后调用。
公共方法 BeforeLoad 在 Visual Studio Tools for Office Runtime 加载类型前调用。
公共方法 BeforeSave 在 Visual Studio Tools for Office Runtime 将类型保存在文档中之前调用。

页首

备注

实现 ICachedType 的类与仅仅满足 XmlSerializer 的要求的类相比,可以使开发人员在更大程度上控制缓存行为。 有关更多信息,请参见 缓存数据

请参见

参考

Microsoft.VisualStudio.Tools.Applications.Runtime 命名空间