共用方式為


OpenTypeMethods.EndsWith(Object, Object) 方法

定義

判斷某個字串的結尾是否符合另一個字串。

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

參數

targetString
Object

被比較的字串。

substring
Object

要比較的字串。

傳回

targetString 是以 substring 結尾,則為 true;否則為 false

備註

當參數不是字串時,將引發錯誤。

適用於