XsltFunctions.StartsWith(String, String) Méthode

Définition

Implémente la starts-with fonction XPath en fonction de la spécification W3C.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 static bool StartsWith(System::String ^ s1, System::String ^ s2);
public static bool StartsWith(string s1, string s2);
static member StartsWith : string * string -> bool
Public Shared Function StartsWith (s1 As String, s2 As String) As Boolean

Paramètres

s1
String

Chaîne, dont le début est comparé à s2.

s2
String

Chaîne à comparer au début de s1.

Retours

true si la première chaîne d’argument commence par la deuxième chaîne d’argument ; sinon, false.

S’applique à