PeerObjectCollection.InsertItem(Int32, PeerObject) PeerObjectCollection.InsertItem(Int32, PeerObject) PeerObjectCollection.InsertItem(Int32, PeerObject) PeerObjectCollection.InsertItem(Int32, PeerObject) Method

定義

PeerObjectCollection 内の指定したインデックスまたはキーの位置に新しい PeerObject を挿入します。Inserts a new PeerObject element into the PeerObjectCollection at the specified index or key.

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)

パラメーター

index
Int32 Int32 Int32 Int32

要素の場所を表す 0 から始まるインデックス。The zero-based index in which the element resides.

item
PeerObject PeerObject PeerObject PeerObject

指定したインデックス位置の要素の新しい値。The new value for the element in the specified index.

例外

item 引数が null です。The item argument is null.

注釈

Null値要素は使用できません。Null value elements are not allowed.

適用対象

こちらもご覧ください