Assembly: Microsoft.VisualStudio.Tools.Applications.Runtime (in microsoft.visualstudio.tools.applications.runtime.dll)
The documentPath parameter is a null reference (Nothing in Visual Basic) or empty or consists entirely of white space characters.
The file specified by documentPath does not exist.
The file specified by documentPath is read-only, or cannot be accessed.
The file specified by documentPath does not have a Visual Studio Tools for Office customization, or an error occurred while loading the manifest.
The following code example uses the RemoveCustomization method to remove the customization from the specified document. The example first calls themethod to determine whether the document has a Visual Studio Tools for Office customization. This example requires a reference to the assembly, and an Imports (for Visual Basic) or using (for C#) statement for the Microsoft.VisualStudio.Tools.Applications.Runtime namespace at the top of your code file.