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 不允許專案。

適用於

另請參閱