Partager via


ModelingDocStore.CanUndoRedo(Boolean, TransactionItem) Method

Definition

Query whether Undo/Redo can proceed based on external criteria.

public:
 virtual bool CanUndoRedo(bool isUndo, Microsoft::VisualStudio::Modeling::TransactionItem ^ transaction);
public virtual bool CanUndoRedo (bool isUndo, Microsoft.VisualStudio.Modeling.TransactionItem transaction);
abstract member CanUndoRedo : bool * Microsoft.VisualStudio.Modeling.TransactionItem -> bool
override this.CanUndoRedo : bool * Microsoft.VisualStudio.Modeling.TransactionItem -> bool
Public Overridable Function CanUndoRedo (isUndo As Boolean, transaction As TransactionItem) As Boolean

Parameters

isUndo
Boolean

True if Undo, false if Redo.

transaction
TransactionItem

TransactionItem to Undo/Redo.

Returns

True to allow Undo/Redo, false to decline.

Applies to