PeerNearMeCollection.InsertItem(Int32, PeerNearMe) 方法

定義

將新的 PeerNearMe 項目插入至 PeerNearMeCollection 中指定的索引位置或索引鍵。

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

參數

index
Int32

項目所在之以零起始的索引。

item
PeerNearMe

指定之索引中的項目新值。

例外狀況

item 引數為 null

備註

Null 不允許 value 元素。

適用於

另請參閱