CannotRemoveCustomizationException Class (2007 System)
The exception that is thrown when a customization could not be programmatically removed from a document.
Namespace: Microsoft.Office.Tools
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class CannotRemoveCustomizationException _
Inherits RuntimeException
'Usage
Dim instance As CannotRemoveCustomizationException
[SerializableAttribute]
public sealed class CannotRemoveCustomizationException : RuntimeException
[SerializableAttribute]
public ref class CannotRemoveCustomizationException sealed : public RuntimeException
public final class CannotRemoveCustomizationException extends RuntimeException
Remarks
This exception is thrown by the following methods if the custom document properties or the cached data could not be removed from the document:
The RemoveCustomization method of the Document class.
The RemoveCustomization method of the Workbook class.
Inheritance Hierarchy
System.Object
System.Exception
Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
Microsoft.Office.Tools.CannotRemoveCustomizationException
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.