IMergeTextUndoTransactionPolicy.TestCompatiblePolicy Method

Determines whether one IMergeTextUndoTransactionPolicy is compatible with another.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Function TestCompatiblePolicy ( _
    other As IMergeTextUndoTransactionPolicy _
) As Boolean
bool TestCompatiblePolicy(
    IMergeTextUndoTransactionPolicy other
)
bool TestCompatiblePolicy(
    IMergeTextUndoTransactionPolicy^ other
)
abstract TestCompatiblePolicy : 
        other:IMergeTextUndoTransactionPolicy -> bool 
function TestCompatiblePolicy(
    other : IMergeTextUndoTransactionPolicy
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the policy is compatible, otherwise false.

Remarks

Merging happens only when merge policies in primitives are compatible. This function should be symmetric and ideally constant time. For instance, (this.GetType() == other.GetType()).

.NET Framework Security

See Also

Reference

IMergeTextUndoTransactionPolicy Interface

Microsoft.VisualStudio.Text.Operations Namespace