共用方式為


StringBuilder.LastIndexOf Method

Definition

Overloads

LastIndexOf(String, Int32)

Searches for the index of the specified character.

LastIndexOf(String)

Searches for the last index of the specified character.

LastIndexOf(String, Int32)

Searches for the index of the specified character.

[Android.Runtime.Register("lastIndexOf", "(Ljava/lang/String;I)I", "")]
public override int LastIndexOf (string str, int fromIndex);
[<Android.Runtime.Register("lastIndexOf", "(Ljava/lang/String;I)I", "")>]
override this.LastIndexOf : string * int -> int

Parameters

str
String
fromIndex
Int32

Returns

Attributes

Exceptions

if subString is null.

Remarks

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.

See also

  • <xref:Java.Lang.String.LastIndexOf(System.String%2c+System.Int32)>

Applies to

LastIndexOf(String)

Searches for the last index of the specified character.

[Android.Runtime.Register("lastIndexOf", "(Ljava/lang/String;)I", "")]
public override int LastIndexOf (string str);
[<Android.Runtime.Register("lastIndexOf", "(Ljava/lang/String;)I", "")>]
override this.LastIndexOf : string -> int

Parameters

str
String

Returns

Attributes

Exceptions

if string is null.

Remarks

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.

See also

Applies to