Język

PeerContactCollection.InsertItem(Int32, PeerContact) Metoda

Definicja

Wstawia nowy PeerContact element do określonego indeksu PeerContactCollection lub klucza.

protected:
 override void InsertItem(int index, System::Net::PeerToPeer::Collaboration::PeerContact ^ item);
protected override void InsertItem(int index, System.Net.PeerToPeer.Collaboration.PeerContact item);
override this.InsertItem : int * System.Net.PeerToPeer.Collaboration.PeerContact -> unit
Protected Overrides Sub InsertItem (index As Integer, item As PeerContact)

Parametry

index
Int32

Indeks zerowy elementu do zastąpienia.

item
PeerContact

Nowa wartość elementu w określonym indeksie.

Wyjątki

Podana PeerContact wartość to null

Uwagi

Null elementy są niedozwolone.

Dotyczy

Zobacz też