PeerEndPointCollection.SetItem(Int32, PeerEndPoint) 方法

定義

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

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

參數

index
Int32

要取代的項目之以零起始的索引。

item
PeerEndPoint

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

例外狀況

item 引數為 null

備註

Null 不允許 value 元素。

適用於

另請參閱