Click or drag to resize
StringStartsWith Method (String)
Determines whether the beginning of this string instance matches the specified string.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public bool StartsWith(
	string value
)

Parameters

value
Type: SystemString
The string to compare.

Return Value

Type: Boolean
true if value matches the beginning of this string; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
See Also