System Namespace String Class
Determines whether the end of this instance matches the specified String.
[ VB ]
<Serializable>
Public Function EndsWith ( _
ByVal value As String _
) As Boolean
[ C# ]
[ Serializable ]
public bool EndsWith (
string value
);
[ C++ ]
[ Serializable ]
public: bool EndsWith (
String* value
);
[ JScript ]
public Serializable
function EndsWith (
value : String
) : Boolean;
- value
- A String.
true if the end of this instance matches value; otherwise, false.
This method compares value with the substring at the end of the current instance that has a length of value.Length.
The comparison is case-sensitive.
String Members StartsWith