IHierarchicalStringDifferenceService.DiffStrings Method
Calculates the differences between two strings, using the given difference options.
Namespace: Microsoft.VisualStudio.Text.Differencing
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Function DiffStrings ( _
left As String, _
right As String, _
differenceOptions As StringDifferenceOptions _
) As IHierarchicalDifferenceCollection
IHierarchicalDifferenceCollection DiffStrings(
string left,
string right,
StringDifferenceOptions differenceOptions
)
IHierarchicalDifferenceCollection^ DiffStrings(
String^ left,
String^ right,
StringDifferenceOptions differenceOptions
)
abstract DiffStrings :
left:string *
right:string *
differenceOptions:StringDifferenceOptions -> IHierarchicalDifferenceCollection
function DiffStrings(
left : String,
right : String,
differenceOptions : StringDifferenceOptions
) : IHierarchicalDifferenceCollection
Parameters
left
Type: System.StringThe left string. In most cases this is the the "old" string.
right
Type: System.StringThe right string. In most cases this is the "new" string.
differenceOptions
Type: Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptionsThe options to use in differencing
Return Value
Type: Microsoft.VisualStudio.Text.Differencing.IHierarchicalDifferenceCollection
A hierarchical collection of differences.
.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.