XsltFunctions.SubstringAfter(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
substring-after根据 W3C 规范实现 XPath 函数。
此 API 支持产品基础结构,不能在代码中直接使用。
public:
static System::String ^ SubstringAfter(System::String ^ s1, System::String ^ s2);
public static string SubstringAfter(string s1, string s2);
static member SubstringAfter : string * string -> string
Public Shared Function SubstringAfter (s1 As String, s2 As String) As String
参数
- s1
- String
要在其中查找 s2 的字符串。
- s2
- String
要查找到的 s1字符串。
返回
s2 之后出现的 s1 中的字符;如果 s1 不包含 s2,则为空字符串。
注解
在字符串(s1)中找到子字符串(s2),并返回 s2 之后出现的 s1 中的字符。