ModelingDocStore.CanUndoRedo(Boolean, TransactionItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.