SynchronizedCollection<T>.Item[Int32] 屬性

定義

從具有指定索引且具備執行緒安全的集合中取得項目。

public:
 property T default[int] { T get(int index); void set(int index, T value); };
public T this[int index] { get; set; }
member this.Item(int) : 'T with get, set
Default Public Property Item(index As Integer) As T

參數

index
Int32

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

屬性值

T

具有指定 index 之集合中的物件。

實作

例外狀況

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

適用於