Document.RemoveCustomization Method

Definition

Removes the customization from the document.

public:
 void RemoveCustomization();
public void RemoveCustomization ();
abstract member RemoveCustomization : unit -> unit
Public Sub RemoveCustomization ()

Exceptions

The custom document properties or the cached data could not be removed from the document.

The document is protected.

Remarks

This method removes the customization by performing the following tasks:

  • It deletes the _AssemblyName and _AssemblyLocation custom properties from the document. For more information, see Custom Document Properties Overview.

  • It deletes the cached data from the document. For more information about cached data, see Caching Data.

This method might throw an UnauthorizedAccessException if the document is protected. You should remove any protection from the document before calling this method.

Applies to