此成员重写 UndoEngine.AddUndoUnit(UndoEngine.UndoUnit),且该主题可能包括更完整的文档。
添加抵消单位到抵消单位管理器。
命名空间: Microsoft.VisualStudio.Shell.Design
程序集: Microsoft.VisualStudio.Shell.Design(在 Microsoft.VisualStudio.Shell.Design.dll 中)
语法
声明
Protected Overrides Sub AddUndoUnit ( _
unit As UndoEngine.UndoUnit _
)
protected override void AddUndoUnit(
UndoEngine.UndoUnit unit
)
参数
备注
此方法将此 OleUndoEngine.UndoUnit 到 IOleUndoUnit 并添加抵消单位到 IOleUndoManager。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.VisualStudio.Shell.Design 命名空间
OnInterveningUnitBlockingLinkedUndo