XsltFunctions.Substring Method

Definition

Implements substring XPath function according to W3C specification.

Overloads

Substring(String, Double)

This API supports the product infrastructure and is not intended to be used directly from your code.

Implements substring XPath function according to the W3C specification.

Substring(String, Double, Double)

This API supports the product infrastructure and is not intended to be used directly from your code.

Implements substring XPath function according to the W3C specification.

Substring(String, Double)

Source:
XsltFunctions.cs
Source:
XsltFunctions.cs
Source:
XsltFunctions.cs

Implements substring XPath function according to the W3C specification.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public static string Substring(string value, double startIndex);

Parameters

value
String

The string from which to retrieve the substring.

startIndex
Double

The starting character position of a substring in value.

Returns

The substring of the first argument starting at the position specified in the second argument.

Applies to

.NET Framework 4.8.1 e altre versioni
Prodotto Versioni
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Substring(String, Double, Double)

Source:
XsltFunctions.cs
Source:
XsltFunctions.cs
Source:
XsltFunctions.cs

Implements substring XPath function according to the W3C specification.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public static string Substring(string value, double startIndex, double length);

Parameters

value
String

The string from which to retrieve the substring.

startIndex
Double

The starting character position of a substring in value.

length
Double

The number of characters in the substring.

Returns

The substring of the first argument, starting at the position specified in the second argument, with the length specified in the third argument.

Applies to

.NET Framework 4.8.1 e altre versioni
Prodotto Versioni
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1