SPStringUtility.SubstringSurrogateAware - Méthode

Retourne une sous-chaîne de la chaîne spécifiée, en s'assurant que la chaîne retournée est valide si la chaîne est une paire de substitution.

Espace de noms :  Microsoft.SharePoint.Utilities
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Shared Function SubstringSurrogateAware ( _
    str As String, _
    startIndex As Integer, _
    length As Integer _
) As String
'Utilisation
Dim str As String
Dim startIndex As Integer
Dim length As Integer
Dim returnValue As String

returnValue = SPStringUtility.SubstringSurrogateAware(str, _
    startIndex, length)
public static string SubstringSurrogateAware(
    string str,
    int startIndex,
    int length
)

Paramètres

  • startIndex
    Type : System.Int32

    Un entier de 32 bits qui représente la position d'index de début de la sous-chaîne.

  • length
    Type : System.Int32

    Un entier 32 bits qui représente le nombre de caractères dans la sous-chaîne.

Valeur renvoyée

Type : System.String
La sous-chaîne.

Remarques

La méthode SubstringSurrogateAware permet de fractionner une paire de substitution et de s'assurer que la sous-chaîne retournée est valide.

Voir aussi

Référence

SPStringUtility classe

SPStringUtility - Membres

Microsoft.SharePoint.Utilities - Espace de noms