Share via


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 項目無法插入集合中。

適用於