CannotRemoveCustomizationException Class
The exception that is thrown when a customization could not be programmatically removed from a document.
Assembly: Microsoft.Office.Tools.v4.0.Framework (in Microsoft.Office.Tools.v4.0.Framework.dll)
System::Exception
Microsoft.VisualStudio.Tools.Applications.Runtime::RuntimeException
Microsoft.Office.Tools::CannotRemoveCustomizationException
[SerializableAttribute] [DebuggerNonUserCodeAttribute] [SecurityPermissionAttribute(SecurityAction::Demand, Unrestricted = true)] [SecurityPermissionAttribute(SecurityAction::InheritanceDemand, Unrestricted = true)] public ref class CannotRemoveCustomizationException sealed : RuntimeException
| Name | Description | |
|---|---|---|
![]() | CannotRemoveCustomizationException() | This API supports the product infrastructure and is not intended to be used directly from your code. |
![]() | CannotRemoveCustomizationException(Exception^) | This API supports the product infrastructure and is not intended to be used directly from your code. |
![]() | CannotRemoveCustomizationException(String^) | This API supports the product infrastructure and is not intended to be used directly from your code. |
![]() | CannotRemoveCustomizationException(String^, Exception^) | This API supports the product infrastructure and is not intended to be used directly from your code. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | GetBaseException() | (Inherited from Exception.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetObjectData(SerializationInfo^, StreamingContext) | (Inherited from Exception.) |
![]() | GetType() | (Inherited from Exception.) |
![]() | ToString() | (Inherited from Exception.) |
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 a Document object.
The RemoveCustomization method of a Workbook object.
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

