Creates an
UndoUnit for the specified method.
Parameters
- description
- The description for the transaction.
- detailedDescription
- The more detailed description for the operation.
- undoMethod
- The method to be invoked when an Undo is being performed. The method returns a boolean indicating if the operation was successful.
- redoMethod
- The method to be invoked when an Redo is being performed. The method returns a boolean indicating if the operation was successful.
- target
- The object that is the target of the function. This information is exposed via the UndoUnit.Target property.
Return Value
An
UndoUnit that can be used to undo the operation
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2