次の方法で共有


String.EndsWith(String) Method

Definition

Tests if this string ends with the specified suffix.

[Android.Runtime.Register("endsWith", "(Ljava/lang/String;)Z", "")]
public bool EndsWith (string suffix);
[<Android.Runtime.Register("endsWith", "(Ljava/lang/String;)Z", "")>]
member this.EndsWith : string -> bool

Parameters

suffix
String

the suffix.

Returns

true if the character sequence represented by the argument is a suffix of the character sequence represented by this object; false otherwise. Note that the result will be true if the argument is the empty string or is equal to this String object as determined by the #equals(Object) method.

Attributes

Exceptions

if suffix is null.

Remarks

Tests if this string ends with the specified suffix.

Java documentation for java.lang.String.endsWith(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to