SPDiffUtility.Diff method

Determines the text differences between two strings.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function Diff ( _
    str1 As String, _
    str2 As String, _
    maxDifferences As Integer _
) As String
'Usage
Dim str1 As String
Dim str2 As String
Dim maxDifferences As Integer
Dim returnValue As String

returnValue = SPDiffUtility.Diff(str1, str2, _
    maxDifferences)
public static string Diff(
    string str1,
    string str2,
    int maxDifferences
)

Parameters

  • maxDifferences
    Type: System.Int32

    A 32-bit integer representing the maximum number of differences to find.

Return value

Type: System.String
A merged version of the specified strings that contain HTML tags indicating inserted, deleted, or changed text.

See also

Reference

SPDiffUtility class

SPDiffUtility members

Microsoft.SharePoint.Utilities namespace