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

適用於