PeerApplicationCollection.InsertItem(Int32, PeerApplication) 方法

定義

將新的 PeerApplication 項目插入至 PeerApplicationCollection 中指定的索引位置或索引鍵。Inserts a new PeerApplication element into the PeerApplicationCollection at the specified index or key.

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

參數

index
Int32

要取代的項目之以零起始的索引The zero-based index of the element to replace

item
PeerApplication

指定之索引處的項目新值The new value for the element at the specified index

備註

Null不允許專案。Null items are not allowed.

適用於

另請參閱