Android Guides | Samples

Java.Lang.String.EndsWith Method

Compares the specified string to this string to determine if the specified string is a suffix.

Syntax

[Android.Runtime.Register("endsWith", "(Ljava/lang/String;)Z", "")]
public Boolean EndsWith (String suffix)

Parameters

suffix
the suffix to look for.

Exceptions

TypeReason
NullPointerExceptionif suffix is null.

Remarks

Compares the specified string to this string to determine if the specified string is a suffix.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1