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

定義

取得或設定項目,這個項目位於指定之以零起始的索引。

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; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property Item(index As Integer) As Object Implements IList.Item

參數

index
Int32

要從集合中擷取之項目的以零起始的索引。

屬性值

具有指定之 index 的項目。

實作

例外狀況

設定的值為 null,或者不是適用於該集合的正確泛型型別 T

指定的 index 小於零或大於集合中的項目數。

適用於