Partager via


IMergeTextUndoTransactionPolicy.TestCompatiblePolicy Method

Definition

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

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()).

Applies to