String.Substring String.Substring Method

Definition

Overloads

Substring(Int32) Substring(Int32)

Returns a string containing a suffix of this string starting at start.

Substring(Int32, Int32) Substring(Int32, Int32)

Returns a string containing the given subsequence of this string.

Substring(Int32) Substring(Int32)

Returns a string containing a suffix of this string starting at start.

[Android.Runtime.Register("substring", "(I)Ljava/lang/String;", "")]
public string Substring (int beginIndex);
member this.Substring : int -> string

Parameters

beginIndex
Int32 Int32

Returns

Exceptions

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.

Substring(Int32, Int32) Substring(Int32, Int32)

Returns a string containing the given subsequence of this string.

[Android.Runtime.Register("substring", "(II)Ljava/lang/String;", "")]
public string Substring (int beginIndex, int endIndex);
member this.Substring : int * int -> string

Parameters

beginIndex
Int32 Int32
endIndex
Int32 Int32

Returns

Exceptions

if start , start > end or end > length().

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.

Applies to