Rune.GetRuneAt(String, 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.
Gets the Rune that begins at a specified position in a string.
public:
static System::Text::Rune GetRuneAt(System::String ^ input, int index);
public static System.Text.Rune GetRuneAt (string input, int index);
static member GetRuneAt : string * int -> System.Text.Rune
Public Shared Function GetRuneAt (input As String, index As Integer) As Rune
Parameters
- input
- String
The string from which to create the rune.
- index
- Int32
The starting position in input
at which to create the rune.
Returns
The rune obtained from input
at the specified index
.
Exceptions
input
is null
.
index
does not reference the start of a valid scalar value in input
.
index
is outside the range of input
.
Remarks
Throws an exception if input
is null
, index
is out of range, or index
does not reference the start of a valid scalar value within input
.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈