StringBuilder.LastIndexOf 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.
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.