IMergeTextUndoTransactionPolicy.PerformTransactionMerge Method
Merges a new ITextUndoTransaction with an existing one.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Déclaration
Sub PerformTransactionMerge ( _
existingTransaction As ITextUndoTransaction, _
newTransaction As ITextUndoTransaction _
)
void PerformTransactionMerge(
ITextUndoTransaction existingTransaction,
ITextUndoTransaction newTransaction
)
void PerformTransactionMerge(
ITextUndoTransaction^ existingTransaction,
ITextUndoTransaction^ newTransaction
)
abstract PerformTransactionMerge :
existingTransaction:ITextUndoTransaction *
newTransaction:ITextUndoTransaction -> unit
function PerformTransactionMerge(
existingTransaction : ITextUndoTransaction,
newTransaction : ITextUndoTransaction
)
Parameters
- existingTransaction
Type: Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction
The existing transaction.
- newTransaction
Type: Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction
The new transaction.
Remarks
This method merges newTransaction with existingTransaction by adding, removing, or modifying the undo primitives in the existing transaction's ITextUndoPrimitive collection. A simple implementation might add each undo primitive in the new transaction to those of the existing transaction.
.NET Framework Security
- 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.