包含在文档级自定义项的数据岛中缓存的所有数据。
继承层次结构
System.Object
  Microsoft.VisualStudio.Tools.Applications.CachedDataNodeBase
    Microsoft.VisualStudio.Tools.Applications.CachedData
命名空间:  Microsoft.VisualStudio.Tools.Applications
程序集:  Microsoft.VisualStudio.Tools.Applications.ServerDocument(在 Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll 中)
语法
声明
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class CachedData _
    Inherits CachedDataNodeBase
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class CachedData : CachedDataNodeBase
CachedData 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | HostItems | 获取数据缓存中 CachedDataHostItem 对象的集合。 | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | Clear | 从 Office 解决方案文档中移除缓存数据,并从缓存的数据清单中移除缓存数据的说明。 | 
| .gif) | ClearData | 从 Office 解决方案文档中移除缓存的数据。 | 
| .gif) | Equals | 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。) | 
| .gif) | Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) | 
| .gif) | FromXml | 根据 XML 字符串在 Office 解决方案中重新构造缓存数据。 | 
| .gif) | GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) | 
| .gif) | GetType | 获取当前实例的 Type。 (继承自 Object。) | 
| .gif) | MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) | 
| .gif) | ToString | 返回表示当前对象的字符串。 (继承自 Object。) | 
| .gif) | ToXml | 返回缓存在 Office 解决方案文档中的数据的序列化 XML 表示形式。 | 
页首
备注
有关在文档级自定义项中缓存数据的更多信息,请参见缓存数据和访问服务器上的文档数据。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参见
参考
Microsoft.VisualStudio.Tools.Applications 命名空间