Share via


PeerApplicationCollection.InsertItem(Int32, PeerApplication) 方法

定义

将新的 PeerApplication 元素插入指定索引或键处的 PeerApplicationCollection

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

参数

index
Int32

待替换元素的从零开始的索引。

item
PeerApplication

位于指定索引处的元素的新值。

注解

Null 不允许项目。

适用于

另请参阅