KeyedByTypeCollection<TItem>.SetItem(Int32, TItem) Método
Definição
Substitui o item no índice especificado por um novo objeto.Replaces the item at the specified index with a new object.
protected:
override void SetItem(int index, TItem item);
protected:
override void SetItem(int index, TItem kind);
protected override void SetItem (int index, TItem item);
protected override void SetItem (int index, TItem kind);
override this.SetItem : int * 'Item -> unit
override this.SetItem : int * 'Item -> unit
Protected Overrides Sub SetItem (index As Integer, item As TItem)
Protected Overrides Sub SetItem (index As Integer, kind As TItem)
Parâmetros
- index
- Int32
O índice de base zero do item a ser substituído.The zero-based index of the item to be replaced.
- itemkind
- TItem
O objeto a ser adicionado à coleção.The object to add to the collection.
Exceções
item é null.item is null.