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)
Syntax
'宣言
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
Parameters
- newerTransaction
Type: Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction
The newer transaction.
- olderTransaction
Type: Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction
The older transaction.
Return Value
Type: System.Boolean
true if the transactions can be merged, 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.
.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.