Rune.TryGetRuneAt(String, Int32, Rune) 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.
Attempts to get the Rune that begins at a specified position in a string, and return a value that indicates whether the operation succeeded.
public:
static bool TryGetRuneAt(System::String ^ input, int index, [Runtime::InteropServices::Out] System::Text::Rune % value);
public static bool TryGetRuneAt (string input, int index, out System.Text.Rune value);
static member TryGetRuneAt : string * int * Rune -> bool
Public Shared Function TryGetRuneAt (input As String, index As Integer, ByRef value As Rune) As Boolean
Parameters
- input
- String
The string from which to extract the rune.
- index
- Int32
The zero-based index from which to extract the rune.
- value
- Rune
When this method returns, the decoded rune.
Returns
true
if a scalar value was successfully extracted from the specified index; false
if a value could not be extracted because of invalid data.
Exceptions
input
is null
.
index
is out of the range of input
.
Remarks
Throws an exception if input
is null
or index
is out of range.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈