Udostępnij za pośrednictwem


String.SubSequence(Int32, Int32) Method

Definition

Returns a character sequence that is a subsequence of this sequence.

public string SubSequence (int beginIndex, int endIndex);
member this.SubSequence : int * int -> string

Parameters

beginIndex
Int32

the begin index, inclusive.

endIndex
Int32

the end index, exclusive.

Returns

the specified subsequence.

Remarks

Returns a character sequence that is a subsequence of this sequence.

An invocation of this method of the form

<blockquote>

str.subSequence(begin,&nbsp;end)

</blockquote>

behaves in exactly the same way as the invocation

<blockquote>

str.substring(begin,&nbsp;end)

</blockquote>

Added in 1.4.

Java documentation for java.lang.String.subSequence(int, int).

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