OpenTypeMethods.EndsWith Method (Object, Object)

 

Determines whether the end of one string matches another string.

Namespace:   System.Data.Services.Providers
Assembly:  System.Data.Services (in System.Data.Services.dll)

public static object EndsWith(
	object targetString,
	object substring
)

Parameters

targetString
Type: System.Object

The string being compared.

substring
Type: System.Object

The string to compare to.

Return Value

Type: System.Object

Returns true when targetString ends with substring; otherwise returns false.

An error is raised when the parameters are not strings.

.NET Framework
Available since 3.5
Return to top
Show: