IMergeTextUndoTransactionPolicy.CanMerge 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.
Determines whether two ITextUndoTransaction objects can be merged.
public:
bool CanMerge(Microsoft::VisualStudio::Text::Operations::ITextUndoTransaction ^ newerTransaction, Microsoft::VisualStudio::Text::Operations::ITextUndoTransaction ^ olderTransaction);
public bool CanMerge (Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction newerTransaction, Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction olderTransaction);
abstract member CanMerge : Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction * Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction -> bool
Public Function CanMerge (newerTransaction As ITextUndoTransaction, olderTransaction As ITextUndoTransaction) As Boolean
Parameters
- newerTransaction
- ITextUndoTransaction
The newer transaction.
- olderTransaction
- ITextUndoTransaction
The older transaction.
Returns
true
of the merge should proceed, otherwise false
.
Remarks
If this method returns true
, then the merge can proceed, given specific knowledge of the transactions in question. This method is called only when TestCompatiblePolicy succeeds.