Muokkaa

Jaa


XsltFunctions.StartsWith(String, String) Method

Definition

Implements starts-with XPath function according to the W3C specification.

This API supports the product infrastructure and is not intended to be used directly from your 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

Parameters

s1
String

A string, the beginning of which is compared to s2.

s2
String

The string to compare to the beginning of s1.

Returns

true if the first argument string starts with the second argument string; otherwise, false.

Applies to