String.StartsWith String.StartsWith Method

Definition

Overloads

StartsWith(String) StartsWith(String)

Compares the specified string to this string to determine if the specified string is a prefix.

StartsWith(String, Int32) StartsWith(String, Int32)

Compares the specified string to this string, starting at the specified offset, to determine if the specified string is a prefix.

StartsWith(String) StartsWith(String)

Compares the specified string to this string to determine if the specified string is a prefix.

[Android.Runtime.Register("startsWith", "(Ljava/lang/String;)Z", "")]
public bool StartsWith (string prefix);
member this.StartsWith : string -> bool

Parameters

prefix
String String

the string to look for.

Returns

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

StartsWith(String, Int32) StartsWith(String, Int32)

Compares the specified string to this string, starting at the specified offset, to determine if the specified string is a prefix.

[Android.Runtime.Register("startsWith", "(Ljava/lang/String;I)Z", "")]
public bool StartsWith (string prefix, int toffset);
member this.StartsWith : string * int -> bool

Parameters

prefix
String String

the string to look for.

toffset
Int32 Int32

Returns

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to