IMergeTextUndoTransactionPolicy.TestCompatiblePolicy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether one IMergeTextUndoTransactionPolicy is compatible with another.
public:
bool TestCompatiblePolicy(Microsoft::VisualStudio::Text::Operations::IMergeTextUndoTransactionPolicy ^ other);
public:
bool TestCompatiblePolicy(Microsoft::VisualStudio::Text::Operations::IMergeTextUndoTransactionPolicy ^ other);
bool TestCompatiblePolicy(Microsoft::VisualStudio::Text::Operations::IMergeTextUndoTransactionPolicy const & other);
public bool TestCompatiblePolicy (Microsoft.VisualStudio.Text.Operations.IMergeTextUndoTransactionPolicy other);
abstract member TestCompatiblePolicy : Microsoft.VisualStudio.Text.Operations.IMergeTextUndoTransactionPolicy -> bool
Public Function TestCompatiblePolicy (other As IMergeTextUndoTransactionPolicy) As Boolean
Parameters
The IMergeTextUndoTransactionPolicy to test.
Returns
true
if the merge should proceed, 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()).