OpenTypeMethods.EndsWith(Object, Object) Méthode

Définition

Détermine si la fin d'une chaîne correspond à une autre chaîne.

public:
 static System::Object ^ EndsWith(System::Object ^ targetString, System::Object ^ substring);
public static object EndsWith (object targetString, object substring);
static member EndsWith : obj * obj -> obj
Public Shared Function EndsWith (targetString As Object, substring As Object) As Object

Paramètres

targetString
Object

Chaîne qui est comparée.

substring
Object

Chaîne de comparaison.

Retours

true si targetString se termine par substring ; sinon, false.

Remarques

Une erreur est générée lorsque les paramètres ne sont pas des chaînes.

S’applique à