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

定義

PeerNameRecordCollection 内の指定したインデックスの位置に PeerNameRecord 要素を挿入します。

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 項目をコレクションに挿入することはできません。

適用対象