PeerNameRecordCollection.InsertItem(Int32, PeerNameRecord) Método
Definição
Insere um elemento PeerNameRecord na PeerNameRecordCollection no índice especificado.Inserts a PeerNameRecord element into the PeerNameRecordCollection at the specified index.
protected:
override void InsertItem(int index, System::Net::PeerToPeer::PeerNameRecord ^ item);
protected override void InsertItem (int index, System.Net.PeerToPeer.PeerNameRecord item);
override this.InsertItem : int * System.Net.PeerToPeer.PeerNameRecord -> unit
Protected Overrides Sub InsertItem (index As Integer, item As PeerNameRecord)
Parâmetros
- index
- Int32
O índice de base zero do elemento a ser substituído.The zero-based index of the element to replace.
- item
- PeerNameRecord
O valor para o novo elemento no índice especificado.The value for the new element at the specified index.
Exceções
O item fornecido não pode ser null.The item provided cannot be null.
Comentários
Null Não é possível inserir itens em uma coleção.Null items cannot be inserted into a collection.