Click or drag to resize
StringEndsWith Method (String)
Determines whether the end of this string instance matches the specified string.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public bool EndsWith(
	string value
)

Parameters

value
Type: SystemString
The string to compare to the substring at the end of this instance.

Return Value

Type: Boolean
true if value matches the end of this instance; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
See Also