This documentation is archived and is not being maintained.

String.StartsWith Method

Determines whether the beginning of an instance of String matches a specified string.

Name Description
String.StartsWith (String) Determines whether the beginning of this instance matches the specified string.

Supported by the .NET Compact Framework.

String.StartsWith (String, StringComparison) Determines whether the beginning of this string matches the specified string when compared using the specified comparison option.

Supported by the .NET Compact Framework.

String.StartsWith (String, Boolean, CultureInfo) Determines whether the beginning of this string matches the specified string when compared using the specified culture.
Show: