Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Reference
Document Class
Document Methods
 RemoveCustomization Method

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Word Object Model Reference (Visual Studio Tools for Office)
Document.RemoveCustomization Method

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
Visual Basic (Usage)
Dim instance As Document

instance.RemoveCustomization
C#
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.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker