ModelingDocStore.CanUndoRedo Method
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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
Public Overridable Function CanUndoRedo ( _
isUndo As Boolean, _
transaction As TransactionItem _
) As Boolean
public virtual bool CanUndoRedo(
bool isUndo,
TransactionItem transaction
)
public:
virtual bool CanUndoRedo(
bool isUndo,
TransactionItem^ transaction
)
abstract CanUndoRedo :
isUndo:bool *
transaction:TransactionItem -> bool
override CanUndoRedo :
isUndo:bool *
transaction:TransactionItem -> bool
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.