OpenTypeMethods.StartsWith(Object, Object) 方法

定义

检查目标字符串是否以子字符串开头。

public:
 static System::Object ^ StartsWith(System::Object ^ targetString, System::Object ^ substring);
public static object StartsWith (object targetString, object substring);
static member StartsWith : obj * obj -> obj
Public Shared Function StartsWith (targetString As Object, substring As Object) As Object

参数

targetString
Object

要比较的字符串。

substring
Object

targetString 可能以之开头的子字符串。

返回

如果目标字符串以给定子字符串开头,则返回 true;否则,返回 false

适用于