Gets the modeling document store and verifies whether a transaction can be undone or redone.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'Declaration
Public Overridable Function CanUndoRedo ( _
isUndo As Boolean, _
transaction As TransactionItem _
) As Boolean
'Usage
Dim instance As ModelingDocStore
Dim isUndo As Boolean
Dim transaction As TransactionItem
Dim returnValue As Boolean
returnValue = instance.CanUndoRedo(isUndo, _
transaction)
public virtual bool CanUndoRedo(
bool isUndo,
TransactionItem transaction
)
public:
virtual bool CanUndoRedo(
bool isUndo,
TransactionItem^ transaction
)
public function CanUndoRedo(
isUndo : boolean,
transaction : TransactionItem
) : boolean
Parameters
isUndo
Type: System.Booleantrue to indicate that this action is an Undo action; false to indicate that this action is a Redo action.
transaction
Type: Microsoft.VisualStudio.Modeling.TransactionItemThe transaction to undo or redo.
Return Value
Type: System.Boolean
true if a user can undo or redo a transaction; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.