Freigeben über


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

'Declaration
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

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

See Also

Reference

IMergeTextUndoTransactionPolicy Interface

Microsoft.VisualStudio.Text.Operations Namespace