OleUndoEngine.CreateUndoUnit 方法

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

创建新抵消单位。

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

语法

声明
Protected Overrides Function CreateUndoUnit ( _
    name As String, _
    primary As Boolean _
) As UndoEngine.UndoUnit
protected override UndoEngine.UndoUnit CreateUndoUnit(
    string name,
    bool primary
)

参数

  • primary
    类型:System.Boolean
    true ,如果抵消单位是主,否则 false。

返回值

类型:System.ComponentModel.Design.UndoEngine.UndoUnit
创建的 UndoEngine.UndoUnit

备注

,如果 DocData 对象时,该未修改此方法还将返回的抵消单位为最新信息 “清理”一。如果此抵消单位获取取消,这些标志将重置。

.NET Framework 安全性

请参见

参考

OleUndoEngine 类

Microsoft.VisualStudio.Shell.Design 命名空间

UndoEngine.UndoUnit

OleUndoEngine

OnInterveningUnitBlockingLinkedUndo

IVsLinkedUndoClient

OleUndoEngine

AddUndoUnit

DiscardUndoUnit

Dispose

其他资源

提供取消支持对设计器