String.SubSequence(Int32, Int32) 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.
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, end)
</blockquote>
behaves in exactly the same way as the invocation
<blockquote>
str.substring(begin, 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.