NonCacheableTypeException 类 (2007 system)

更新:2007 年 11 月

当试图在文档级自定义项中缓存某个对象,而该对象的类型不是 DataSetDataTable,也不是满足缓存数据中指定要求的类型时引发的异常。

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

语法

声明
<SerializableAttribute> _
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class NonCacheableTypeException _
    Inherits RuntimeException
用法
Dim instance As NonCacheableTypeException
[SerializableAttribute]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class NonCacheableTypeException : RuntimeException

备注

有关在文档级自定义项中缓存数据的更多信息,请参见缓存数据访问服务器上的文档数据

继承层次结构

System.Object
  System.Exception
    Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
      Microsoft.VisualStudio.Tools.Applications.Runtime.NonCacheableTypeException

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

另请参见

参考

NonCacheableTypeException 成员

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

其他资源

缓存数据

访问服务器上的文档数据