This member overrides UndoEngine.AddUndoUnit(UndoEngine.UndoUnit), and more complete documentation might be available in that topic.
Adds the undo unit to the undo unit manager.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'宣言
Protected Overrides Sub AddUndoUnit ( _
unit As UndoEngine..::.UndoUnit _
)
'使用
Dim unit As UndoEngine..::.UndoUnit
Me.AddUndoUnit(unit)
protected override void AddUndoUnit(
UndoEngine..::.UndoUnit unit
)
protected:
virtual void AddUndoUnit(
UndoEngine..::.UndoUnit^ unit
) override
protected override function AddUndoUnit(
unit : UndoEngine..::.UndoUnit
)
Parameters
Remarks
This method maps this OleUndoEngine.UndoUnit to IOleUndoUnit and adds the undo unit to the IOleUndoManager.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Concepts
Supplying Undo Support to Designers
Reference
Microsoft.VisualStudio.Shell.Design Namespace
OnInterveningUnitBlockingLinkedUndo()