Bridge

String..::..StartsWith Method

Determines whether the beginning of this string instance matches the specified string.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public bool StartsWith(
	string prefix
)
<TemplateAttribute> _
Public Function StartsWith ( _
	prefix As String _
) As Boolean
[TemplateAttribute]
public:
bool^ StartsWith(
	String^ prefix
)

Parameters

prefix
Type: System..::..String

Return Value

true if value matches the beginning of this string; otherwise, false.

Exceptions


ExceptionCondition
System..::..ArgumentNullExceptionvalue is null.