SynchronizedKeyedCollection<K,T>.SetItem(Int32, T) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在收藏中指定位置替換一個新項目。
protected:
override void SetItem(int index, T item);
protected override void SetItem(int index, T item);
override this.SetItem : int * 'T -> unit
Protected Overrides Sub SetItem (index As Integer, item As T)
參數
- index
- Int32
以零為基礎的索引,指定該項目在集合中插入的位置。
- item
- T
將插入集合的類型為 T 的項目。