CannotRemoveCustomizationException 类 (2007 system)
更新:2007 年 11 月
当无法以编程方式从文档中移除自定义项时引发的异常。
命名空间: Microsoft.Office.Tools
程序集: Microsoft.Office.Tools.Common.v9.0(在 Microsoft.Office.Tools.Common.v9.0.dll 中)
语法
声明
<SerializableAttribute> _
Public NotInheritable Class CannotRemoveCustomizationException _
Inherits RuntimeException
用法
Dim instance As CannotRemoveCustomizationException
[SerializableAttribute]
public sealed class CannotRemoveCustomizationException : RuntimeException
备注
如果无法从文档中移除自定义文档属性或缓存的数据,则以下方法将引发此异常:
Document 类的 RemoveCustomization 方法。
Workbook 类的 RemoveCustomization 方法。
继承层次结构
System.Object
System.Exception
Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
Microsoft.Office.Tools.CannotRemoveCustomizationException
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。