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
other
Type: Microsoft.VisualStudio.Text.Operations.IMergeTextUndoTransactionPolicyThe IMergeTextUndoTransactionPolicy to test.
Return Value
Type: 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
- 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.