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 (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.Boolean

    true to indicate that this action is an Undo action; false to indicate that this action is a Redo action.

Return Value

Type: System.Boolean
true if a user can undo or redo a transaction; otherwise, false.

.NET Framework Security

See Also

Reference

ModelingDocStore Class

ModelingDocStore Members

Microsoft.VisualStudio.Modeling.Shell Namespace