Rune.TryGetRuneAt(String, Int32, Rune) Method
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
- 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.
true
if a scalar value was successfully extracted from the specified index; false
if a value could not be extracted because of invalid data.
input
is null
.
index
is out of the range of input
.
Throws an exception if input
is null
or index
is out of range.
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: