OleUndoEngine.AddUndoUnit Method
This member overrides UndoEngine.AddUndoUnit(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
'Declaration
Protected Overrides Sub AddUndoUnit ( _
unit As UndoUnit _
)
protected override void AddUndoUnit(
UndoUnit unit
)
protected:
virtual void AddUndoUnit(
UndoUnit^ unit
) override
abstract AddUndoUnit :
unit:UndoUnit -> unit
override AddUndoUnit :
unit:UndoUnit -> unit
protected override function AddUndoUnit(
unit : UndoUnit
)
Parameters
unit
Type: UndoUnit
Remarks
This method maps this OleUndoEngine.UndoUnit to IOleUndoUnit and adds the undo unit to the IOleUndoManager.
.NET Framework Security
- 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
Reference
Microsoft.VisualStudio.Shell.Design Namespace
OnInterveningUnitBlockingLinkedUndo