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
| Name | Description |
|---|---|
| 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
The string used by this operation.
- fromIndex
- Int32
The index from which the search or operation begins.
Returns
The index of the last occurrence of the string, or -1 when it is not present.
- 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
The string used by this operation.
Returns
The index of the last occurrence of the string, or -1 when it is not present.
- 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.