PeerObjectCollection.SetItem(Int32, PeerObject) 方法

定義

取代位於指定索引處的 PeerObject 項目。

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

參數

index
Int32

項目所在之以零起始的索引。

item
PeerObject

指定之索引中的項目新值。

例外狀況

item 引數為 null

備註

Null 不允許 value 元素。

適用於

另請參閱