Removes the Visual Studio Tools for Office customization from the document.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in microsoft.office.tools.word.dll)
Visual Basic (Declaration)
Public Sub RemoveCustomization
Dim instance As Document
instance.RemoveCustomization
public void RemoveCustomization ()
This method removes the Runtime Storage Control from the document, and deletes the _AssemblyName and _AssemblyLocation custom document properties. For more information, see Runtime Storage Control Overview and Custom Document Properties Overview.
This method might throw an UnauthorizedAccessException if the document is protected. You should remove any protection from the document before calling this method.