XsltFunctions.Substring 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
substring根据 W3C 规范实现 XPath 函数。
重载
| 名称 | 说明 |
|---|---|
| Substring(String, Double) |
此 API 支持产品基础结构,不能在代码中直接使用。
|
| Substring(String, Double, Double) |
此 API 支持产品基础结构,不能在代码中直接使用。
|
Substring(String, Double)
- Source:
- XsltFunctions.cs
- Source:
- XsltFunctions.cs
- Source:
- XsltFunctions.cs
- Source:
- XsltFunctions.cs
- Source:
- XsltFunctions.cs
substring根据 W3C 规范实现 XPath 函数。
此 API 支持产品基础结构,不能在代码中直接使用。
public:
static System::String ^ Substring(System::String ^ value, double startIndex);
public static string Substring(string value, double startIndex);
static member Substring : string * double -> string
Public Shared Function Substring (value As String, startIndex As Double) As String
参数
- value
- String
要从中检索子字符串的字符串。
- startIndex
- Double
子字符串的 value起始字符位置。
返回
从第二个参数中指定的位置开始的第一个参数的子字符串。
适用于
Substring(String, Double, Double)
- Source:
- XsltFunctions.cs
- Source:
- XsltFunctions.cs
- Source:
- XsltFunctions.cs
- Source:
- XsltFunctions.cs
- Source:
- XsltFunctions.cs
substring根据 W3C 规范实现 XPath 函数。
此 API 支持产品基础结构,不能在代码中直接使用。
public:
static System::String ^ Substring(System::String ^ value, double startIndex, double length);
public static string Substring(string value, double startIndex, double length);
static member Substring : string * double * double -> string
Public Shared Function Substring (value As String, startIndex As Double, length As Double) As String
参数
- value
- String
要从中检索子字符串的字符串。
- startIndex
- Double
子字符串的 value起始字符位置。
- length
- Double
子字符串中的字符数。
返回
第一个参数的子字符串,从第二个参数中指定的位置开始,在第三个参数中指定的长度。