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
'宣告
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.String
The left string. In most cases this is the the "old" string.
- right
Type: System.String
The right string. In most cases this is the "new" string.
- differenceOptions
Type: Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptions
The 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.