语言

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 元素。

适用于

另请参阅