Collation.EndsWith MethodCollation.EndsWith MethodCollation::EndsWith Method

Returns a boolean value indicating whether one string ends with a specified suffix under this collation.

Syntax

Public MustOverride Function EndsWith( _
    value As String, _
    suffix As String _
) As Boolean
public abstract bool EndsWith(
    string value,
    string suffix
)
public:
virtual bool EndsWith(
    String^ value, 
    String^ suffix
) abstract
 

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the value ends with suffix; otherwise falseFalsefalse.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException value or suffix is null a null reference (Nothing in Visual Basic) nullptr.

Remarks

This method implements the fn:ends-with function for the specified collation, and should follow the same semantics.