String.EndsWith(String) Method
本文內容
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- suffix
- String
the suffix.
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
if suffix
is null
.
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
產品 | 版本 |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |