UndoUnit Class
Wrapper for Modeling transactions so they can be used by the shell's IOleUndoManager interface.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | UndoUnit(IServiceProvider^, Context^, TransactionCommitHandler^) | Creates an undo unit without a transaction, but with a delegate it can use to obtain the transaction later, when necessary. |
![]() | UndoUnit(IServiceProvider^, Context^, TransactionCommitHandler^, DescriptionHandler^) | Creates an undo unit without a transaction, but with a delegate it can use to obtain the transaction later, when necessary. Also specifies a delegate that can be used to obtain the description of this action, to avoid a commit. |
![]() | UndoUnit(IServiceProvider^, Context^, TransactionItem^) | Constructs a new undo unit. |
| Name | Description | |
|---|---|---|
![]() | Do(IOleUndoManager^) | Performs undo/redo based on the internal state of this undo unit. Also, undo unit is responsible for adding itself to the *opposite* stack. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetDescription(String^) | Gets a text description for this undo unit, which is displayed by the shell |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | GetUnitType(Guid, Int32) | Used by undo manager to provide special handling for certain undo units based on their type -- we don't use this method |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | OnNextAdd() | Called when a new undo unit is added on top of this one on the undo stack. We don't need to do anything here. |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

