Version

CustomUndoUnit Constructor

Initializes a new CustomUndoUnit that invokes the specified method when the operation in the undo/redo history is to be performed.
Syntax
'Declaration
 
Public Function New( _
   ByVal description As String, _
   ByVal detailedDescription As String, _
   ByVal executeMethod As Func(Of UndoExecuteContext,Boolean), _
   Optional ByVal target As Object _
)

Parameters

description
The description for the transaction.
detailedDescription
The detailed description for the transaction.
executeMethod
The method to be invoked. 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 Target property.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe executeMethod parameter cannot be null.
Requirements

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

See Also