共用方式為


CaseInsensitiveComparison.StartsWith(String, String) 方法

定義

判斷字串 'value' 是否以字串 'possibleStart' 開頭。

public:
 static bool StartsWith(System::String ^ value, System::String ^ possibleStart);
public static bool StartsWith (string value, string possibleStart);
static member StartsWith : string * string -> bool
Public Shared Function StartsWith (value As String, possibleStart As String) As Boolean

參數

value
String
possibleStart
String

傳回

適用於