IMergeTextUndoTransactionPolicy.CanMerge Method
Determines whether two transactions can be merged
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
'Déclaration
Function CanMerge ( _
newerTransaction As ITextUndoTransaction, _
olderTransaction As ITextUndoTransaction _
) As Boolean
bool CanMerge(
ITextUndoTransaction newerTransaction,
ITextUndoTransaction olderTransaction
)
bool CanMerge(
ITextUndoTransaction^ newerTransaction,
ITextUndoTransaction^ olderTransaction
)
abstract CanMerge :
newerTransaction:ITextUndoTransaction *
olderTransaction:ITextUndoTransaction -> bool
function CanMerge(
newerTransaction : ITextUndoTransaction,
olderTransaction : ITextUndoTransaction
) : boolean
- newerTransaction
Type: Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction
The newer transaction.
- olderTransaction
Type: Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction
The older transaction.
Type: System.Boolean
true if the transactions can be merged, otherwise false.
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.