共用方式為


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.

Return Value

Type: Microsoft.VisualStudio.Text.Differencing.IHierarchicalDifferenceCollection
A hierarchical collection of differences.

.NET Framework Security

See Also

Reference

IHierarchicalStringDifferenceService Interface

Microsoft.VisualStudio.Text.Differencing Namespace