PeerObjectCollection.InsertItem(Int32, PeerObject) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将新 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 元素。