Share via


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

Microsoft.VisualStudio.Modeling.Shell Namespace