Bewerken

Share via


Rune.GetRuneAt(String, Int32) Method

Definition

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