CanUndoRedoCallback Delegate
Add an instance to the UndoManager to vote on whether an undo or redo operation can continue.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Delegate Function CanUndoRedoCallback ( _
isUndo As Boolean, _
transactionItem As TransactionItem _
) As Boolean
public delegate bool CanUndoRedoCallback(
bool isUndo,
TransactionItem transactionItem
)
public delegate bool CanUndoRedoCallback(
bool isUndo,
TransactionItem^ transactionItem
)
type CanUndoRedoCallback =
delegate of
isUndo:bool *
transactionItem:TransactionItem -> bool
JScript does not support delegates.
Parameters
isUndo
Type: System.Booleantrue if this is an undo operation; false if this is a redo operation.
transactionItem
Type: Microsoft.VisualStudio.Modeling.TransactionItemA TransactionItem identifying the transaction.
Return Value
Type: System.Boolean
Remarks
Add an instance to the UndoManager to vote on whether an undo or redo operation can continue.