Java.Lang.String.IndexOf Method
Returns the first index of the given string, or -1.

Syntax

[Android.Runtime.Register("indexOf", "(Ljava/lang/String;)I", "")]
public int IndexOf (string string)

Parameters

string
the string to find.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif string is null.

Remarks

Returns the first index of the given string, or -1. The search starts at the beginning and moves towards the end of this string.

[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