XsltFunctions.SubstringBefore(String, String) メソッド

定義

W3C 仕様substring-before従って XPath 関数を実装します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

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

パラメーター

s1
String

s2 を検索する文字列。

s2
String

s1で検索する文字列。

返品

s1 内の s2 より前の文字。s1 に s2 が含まれていない場合は空の文字列。

注釈

文字列 (s1) 内で部分文字列 (s2) を検索し、s2 より前の s1 の文字を返します。

適用対象