Share via


OleUndoEngine.UndoUnit Class

Extends support for encapsulating a unit of work that a user can undo.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Dichiarazione
Protected Class UndoUnit _
    Inherits UndoEngine..::..UndoUnit _
    Implements IOleParentUndoUnit, IOleUndoUnit
'Utilizzo
Dim instance As OleUndoEngine.UndoUnit
protected class UndoUnit : UndoEngine..::..UndoUnit, 
    IOleParentUndoUnit, IOleUndoUnit
protected ref class UndoUnit : public UndoEngine..::..UndoUnit, 
    IOleParentUndoUnit, IOleUndoUnit
type UndoUnit =  
    class
        inherit UndoEngine..::..UndoUnit
        interface IOleParentUndoUnit
        interface IOleUndoUnit
    end
protected class UndoUnit extends UndoEngine..::..UndoUnit implements IOleParentUndoUnit, IOleUndoUnit

Remarks

The OleUndoEngine.UndoUnit class is a nested class within OleUndoEngine that encapsulates an action that a user can undo by monitoring change notifications and builds up a list of events for each change.

It saves these events using IDesignerSerializationService. An OleUndoEngine.UndoUnit receives event notifications for changes through several methods derived from UndoEngine.UndoUnit, IOleParentUndoUnit and

IOleUndoUnit

By implementing UndoEngine.UndoUnit, IOleParentUndoUnit, and IOleUndoUnit, OleUndoEngine.UndoUnit is able to better support linked undo by providing explicit connection between parent and child undo units.

Inheritance Hierarchy

System.Object
  System.ComponentModel.Design.UndoEngine.UndoUnit
    Microsoft.VisualStudio.Shell.Design.OleUndoEngine.UndoUnit

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

OleUndoEngine.UndoUnit Members

Microsoft.VisualStudio.Shell.Design Namespace

OleUndoEngine

UndoEngine.UndoUnit

IOleParentUndoUnit

IOleUndoUnit