SPDiffUtility.Diff - Méthode
Détermine les différences entre deux chaînes de texte.
Espace de noms : Microsoft.SharePoint.Utilities
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Shared Function Diff ( _
str1 As String, _
str2 As String, _
maxDifferences As Integer _
) As String
'Utilisation
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
)
Paramètres
str1
Type : System.StringLa chaîne d'origine.
str2
Type : System.StringLa chaîne modifiée.
maxDifferences
Type : System.Int32Entier 32 bits qui représente le nombre maximal de différences à trouver.
Valeur renvoyée
Type : System.String
Une version fusionnée des chaînes spécifiées qui contiennent des balises HTML indiquant du texte inséré, supprimé ou modifié.