ImmutableList<T>.IList.Item[Int32] 屬性

定義

取得或設定在指定索引處的 Object

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
object System.Collections.IList.Item[int index] { get; set; }
object? System.Collections.IList.Item[int index] { get; set; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property Item(index As Integer) As Object Implements IList.Item

參數

index
Int32

索引。

屬性值

位於指定索引處的值。

實作

例外狀況

index 是負數或不小於 Count 時,從 getter 擲回。

一律從 setter 擲回。

適用於