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

Syntax

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

Parameters

subString
the string to find.
start
the starting offset.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif subString is null.

Remarks

Returns the next index of the given string in this string, or -1. The search for the string starts at the given offset 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