語言

PeerObjectCollection.InsertItem(Int32, PeerObject) 方法

定義

在指定的索引或鍵位插入一個新 PeerObject 元素 PeerObjectCollection 。

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

元素所處的零基索引。

item
PeerObject

指定索引中元素的新值。

例外狀況

論 item 點為 null。

備註

Null 不允許加入價值元素。

適用於

另請參閱