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

WorkbookBase.RemoveCustomization 方法 ()

 

從活頁簿中移除在 Visual Studio 中使用 Office 開發工具所建立的自訂。

命名空間:   Microsoft.Office.Tools.Excel
組件:  Microsoft.Office.Tools.Excel.v4.0.Utilities (於 Microsoft.Office.Tools.Excel.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 workbook. For more information, see Custom Document Properties Overview.

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

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

回到頁首
顯示: