OleUndoEngine.Dispose 方法 (Boolean)

此成员重写 UndoEngine.Dispose(Boolean),且该主题可能包括更完整的文档。

配置资源此对象。

命名空间:  Microsoft.VisualStudio.Shell.Design
程序集:  Microsoft.VisualStudio.Shell.Design(在 Microsoft.VisualStudio.Shell.Design.dll 中)

语法

声明
Protected Overrides Sub Dispose ( _
    disposing As Boolean _
)
protected override void Dispose(
    bool disposing
)

参数

  • disposing
    类型:System.Boolean
    true 表示释放托管资源和非托管资源;false 表示仅释放非托管资源。

备注

此方法由公共的 Dispose() 方法和 Finalize 方法调用。Dispose() 调用受保护的 Dispose(Boolean) 方法,该方法的 disposing 参数设置为 true。Finalize 调用 disposing 设置为 false 的 Dispose。

当 disposing 参数为 true 时,此方法释放此 OleUndoEngine 引用的所有托管对象占有的全部资源。此方法调用每个被引用对象的 Dispose() 方法。

对继承者的说明

Dispose 可以由其他对象多次调用。当重写 Dispose(Boolean) 时,注意不要引用在以前对 Dispose 的调用中已经释放的对象。有关如何实现 Dispose(Boolean) 的更多信息,请参见 实现 Dispose 方法

有关 Dispose 和 Finalize 的更多信息,请参见 清理非托管资源重写 Finalize 方法

.NET Framework 安全性

请参见

参考

OleUndoEngine 类

Dispose 重载

Microsoft.VisualStudio.Shell.Design 命名空间

UndoEngine.UndoUnit

OleUndoEngine

OnInterveningUnitBlockingLinkedUndo

IVsLinkedUndoClient

OleUndoEngine

AddUndoUnit

CreateUndoUnit

DiscardUndoUnit

其他资源

提供取消支持对设计器