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 不允許 value 元素。

適用於

另請參閱