共用方式為


SPDiffUtility.Diff method

判斷兩個字串之間的文字差異。

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

Syntax

'宣告
Public Shared Function Diff ( _
    str1 As String, _
    str2 As String, _
    maxDifferences As Integer _
) As String
'用途
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
)

參數

  • maxDifferences
    Type: System.Int32

    32 位元整數表示差異的最大數目來尋找。

傳回值

Type: System.String
指定包含的字串表示插入、 刪除或變更文字的 HTML 標記合併的版本。

請參閱

參照

SPDiffUtility class

SPDiffUtility members

Microsoft.SharePoint.Utilities namespace