PeerNameRecordCollection.InsertItem(Int32, PeerNameRecord) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定的索引處插入一個 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 項目不能插入合集。