Rune.GetRuneAt(String, Int32) 方法

定義

取得以字串中指定位置開頭的 Rune

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

參數

input
String

用來建立 rune 的字串。

index
Int32

要在 input 中建立 rune 的起始位置。

傳回

Rune

input (位於指定的 index) 取得的 rune。

例外狀況

inputnull

index 不會參考 input 中有效純量值的起始值。

index 超出 input 的範圍。

備註

如果 inputnullindex 超出範圍,或 index 未參考 內 input 有效純量值的開頭,則會擲回例外狀況。

適用於