DocumentBase.Dispose 方法

This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.

釋放 DocumentBase 使用的資源。

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

語法

'宣告
Public Sub Dispose
public void Dispose()

實作

IDisposable.Dispose()

備註

請勿自行呼叫 Dispose 方法。 關閉文件層級自訂中的文件時, Visual Studio Tools for Office Runtime 會清理自訂所使用的所有資源。

如需 Dispose 方法的詳細資訊,請參閱清除 Unmanaged 資源

.NET Framework 安全性

請參閱

參考

DocumentBase 類別

Microsoft.Office.Tools.Word 命名空間