StringStartsWith Method (String) |
Determines whether the beginning of this string instance matches the specified string.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public bool StartsWith(
string value
)
Parameters
- value
- Type: SystemString
The string to compare.
Return Value
Type:
Booleantrue if
value matches the beginning of this string; otherwise, false.
Exceptions See Also