XsltFunctions.StartsWith(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.