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 元素。

适用于

另请参阅