PeerObjectCollection.InsertItem(Int32, PeerObject) Methode

Definition

Fügt ein neues PeerObject Element in den PeerObjectCollection angegebenen Index oder Schlüssel ein.

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

Parameter

index
Int32

Der nullbasierte Index, in dem sich das Element befindet.

item
PeerObject

Der neue Wert für das Element im angegebenen Index.

Ausnahmen

Das item Argument ist null.

Hinweise

Null Wertelemente sind nicht zulässig.

Gilt für:

Weitere Informationen