Compartilhar via


IHierarchicalStringDifferenceService.DiffStrings Method

Definition

Computes the differences between two strings, using the given difference options.

public:
 Microsoft::VisualStudio::Text::Differencing::IHierarchicalDifferenceCollection ^ DiffStrings(System::String ^ left, System::String ^ right, Microsoft::VisualStudio::Text::Differencing::StringDifferenceOptions differenceOptions);
public Microsoft.VisualStudio.Text.Differencing.IHierarchicalDifferenceCollection DiffStrings (string left, string right, Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptions differenceOptions);
abstract member DiffStrings : string * string * Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptions -> Microsoft.VisualStudio.Text.Differencing.IHierarchicalDifferenceCollection
Public Function DiffStrings (left As String, right As String, differenceOptions As StringDifferenceOptions) As IHierarchicalDifferenceCollection

Parameters

left
String

The left string. In most cases this is the the "old" string.

right
String

The right string. In most cases this is the "new" string.

differenceOptions
StringDifferenceOptions

The options to use in differencing

Returns

A hierarchical collection of differences.

Applies to