語言

ReadOnlySpan<T>.Item[Int32] 屬性

定義

從指定的零基索引的唯讀區間取得一個項目。

public:
 property T& ^ default[int] { T& ^ get(int index); };
public ref readonly T this[int index] { get; }
member this.Item(int) : 'T
Default Public ReadOnly Property Item(index As Integer) As T

參數

index
Int32

元素的零基指數 得 。

屬性值

T

唯讀範圍的元素。

例外狀況

index小於零或大於或等於。Length

適用於