本文為機器翻譯文章。如需檢視英文版,請選取 [原文] 核取方塊。您也可以將滑鼠指標移到文字上,即可在快顯視窗顯示英文原文。
譯文
原文

DocumentBase.RemoveCustomization 方法 ()

 

移除文件中的自訂。

命名空間:   Microsoft.Office.Tools.Word
組件:  Microsoft.Office.Tools.Word.v4.0.Utilities (於 Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public void RemoveCustomization()

Exception Condition
CannotRemoveCustomizationException

無法從文件中移除自訂文件屬性或快取的資料。

UnauthorizedAccessException

文件受到保護。

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 T:System.UnauthorizedAccessException if the document is protected. You should remove any protection from the document before calling this method.

回到頁首
顯示: