System Namespace String Class
Determines whether the beginning of this instance matches the specified String.
[ VB ]
<Serializable>
Public Function StartsWith ( _
ByVal value As String _
) As Boolean
[ C# ]
[ Serializable ]
public bool StartsWith (
string value
);
[ C++ ]
[ Serializable ]
public: bool StartsWith (
String* value
);
[ JScript ]
public Serializable
function StartsWith (
value : String
) : Boolean;
- value
- The String to seek.
true if value matches the beginning of this string or is Empty; otherwise false.
This method makes a comparison at the beginning of the string, determines whether it matches this current instance, and returns a Boolean represetation of their relationship. The specified string must match the prefix or be an empty string ( that is, equals Empty ). The comparison is case-sensitive.
String Members EndsWith