Share via


OleUndoEngine.AddUndoUnit Method

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

'Declaration
Protected Overrides Sub AddUndoUnit ( _
    unit As UndoEngine.UndoUnit _
)
protected override void AddUndoUnit(
    UndoEngine.UndoUnit unit
)
protected:
virtual void AddUndoUnit(
    UndoEngine::UndoUnit^ unit
) override
abstract AddUndoUnit : 
        unit:UndoEngine.UndoUnit -> unit  
override AddUndoUnit : 
        unit:UndoEngine.UndoUnit -> unit
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.

.NET Framework Security

See Also

Reference

OleUndoEngine Class

Microsoft.VisualStudio.Shell.Design Namespace

UndoEngine.UndoUnit

OleUndoEngine

OnInterveningUnitBlockingLinkedUndo

IVsLinkedUndoClient

OleUndoEngine

CreateUndoUnit

DiscardUndoUnit

Dispose

Other Resources

Supplying Undo Support to Designers