返回指定的起始索引位置后特定长度的子字符串。
命名空间: System.Data.Services.Providers
程序集: Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)
语法
声明
Public Shared Function Substring ( _
targetString As Object, _
startIndex As Object, _
length As Object _
) As Object
用法
Dim targetString As Object
Dim startIndex As Object
Dim length As Object
Dim returnValue As Object
returnValue = OpenTypeMethods.Substring(targetString, _
startIndex, length)
public static Object Substring(
Object targetString,
Object startIndex,
Object length
)
public:
static Object^ Substring(
Object^ targetString,
Object^ startIndex,
Object^ length
)
static member Substring :
targetString:Object *
startIndex:Object *
length:Object -> Object
public static function Substring(
targetString : Object,
startIndex : Object,
length : Object
) : Object
参数
- targetString
类型:System.Object
要从中返回子字符串的字符串。
- startIndex
类型:System.Object
子字符串的起始索引。
- length
类型:System.Object
子字符串的长度。
返回值
类型:System.Object
子字符串。
注释
Substring 方法返回 targetString 中从 startIndex 位置到末尾的 length 个字符。