PeerNameRecordCollection.InsertItem(Int32, PeerNameRecord) 方法

定义

PeerNameRecord 元素插入指定索引处的 PeerNameRecordCollection

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

参数

index
Int32

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

item
PeerNameRecord

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

例外

提供的项不能为 null

注解

Null 无法将项插入到集合中。

适用于