IHierarchicalStringDifferenceService.DiffStrings 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.
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.