語言

PeerContactCollection.InsertItem(Int32, PeerContact) 方法

定義

在指定的索引或鍵位插入一個新 PeerContact 元素 PeerContactCollection 。

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

參數

index
Int32

要替換的元素的零基指數。

item
PeerContact

該元素在指定索引處的新值。

例外狀況

所提供的為PeerContactnull

備註

Null 物品不被允許攜帶。

適用於

另請參閱