asp.net.ph

String.EndsWith Method

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;

Parameters

value
A String.

Return Value

true if the end of this instance matches value; otherwise, false.

Exceptions


Exception Type Condition
ArgumentNullException value is a null reference ( Nothing in Visual Basic ).

Remarks

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.

See Also

String Members   StartsWith Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph