Compartilhar via


OpenTypeMethods.EndsWith Method

Determines whether the end of one string matches another string.

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

Syntax

'Declaration
Public Shared Function EndsWith ( _
    targetString As Object, _
    substring As Object _
) As Object
'Usage
Dim targetString As Object 
Dim substring As Object 
Dim returnValue As Object 

returnValue = OpenTypeMethods.EndsWith(targetString, _
    substring)
public static Object EndsWith(
    Object targetString,
    Object substring
)
public:
static Object^ EndsWith(
    Object^ targetString, 
    Object^ substring
)
static member EndsWith : 
        targetString:Object * 
        substring:Object -> Object
public static function EndsWith(
    targetString : Object, 
    substring : Object
) : Object

Parameters

Return Value

Type: System.Object
true when targetString ends with substring; otherwise, false.

Remarks

An error is raised when the parameters are not strings.

See Also

Reference

OpenTypeMethods Class

System.Data.Services.Providers Namespace