Share via


PeerNameRecordCollection.InsertItem(Int32, PeerNameRecord) Metoda

Definice

PeerNameRecord Vloží prvek do zadaného indexuPeerNameRecordCollection.

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)

Parametry

index
Int32

Index elementu založený na nule, který se má nahradit

item
PeerNameRecord

Hodnota nového prvku v zadaném indexu.

Výjimky

Zadanou položkou nemůže být null.

Poznámky

Null položky nelze vložit do kolekce.

Platí pro