言語

PeerNameRecordCollection.InsertItem(Int32, PeerNameRecord) メソッド

定義

指定したインデックス位置にあるPeerNameRecordPeerNameRecordCollection要素を挿入します。

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

置換する要素の 0 から始まるインデックス。

item
PeerNameRecord

指定したインデックス位置にある新しい要素の値。

例外

指定された項目を nullできません。

注釈

Null 項目をコレクションに挿入することはできません。

適用対象